semihosting: create SemihostingConfig structure and semihost.h
Remove semihosting_enabled and semihosting_target and replace them with SemihostingConfig structure containing equivalent fields. The structure is defined in vl.c where it is actually set. Also introduce separate header file include/exec/semihost.h allowing to access semihosting config related stuff from target specific semihosting code. Signed-off-by:Leon Alrae <leon.alrae@imgtec.com> Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Message-id: 1434643256-16858-2-git-send-email-leon.alrae@imgtec.com Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
Showing
- gdbstub.c 4 additions, 4 deletionsgdbstub.c
- include/exec/gdbstub.h 0 additions, 6 deletionsinclude/exec/gdbstub.h
- include/exec/semihost.h 44 additions, 0 deletionsinclude/exec/semihost.h
- include/sysemu/sysemu.h 0 additions, 1 deletioninclude/sysemu/sysemu.h
- target-arm/helper.c 4 additions, 3 deletionstarget-arm/helper.c
- target-lm32/helper.c 2 additions, 1 deletiontarget-lm32/helper.c
- target-m68k/op_helper.c 2 additions, 3 deletionstarget-m68k/op_helper.c
- target-xtensa/translate.c 2 additions, 1 deletiontarget-xtensa/translate.c
- vl.c 29 additions, 9 deletionsvl.c
Loading
Please register or sign in to comment