aboutsummaryrefslogtreecommitdiff
path: root/target-lm32/cpu.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2014-04-22 20:18:42 +0200
committerMichael Walle <michael@walle.cc>2014-05-24 19:42:29 +0200
commitf7bbcfb5c303a07322f1e0f258a936a720183169 (patch)
treef80eb40b70e9521fddfa6b96fbb8e9247c4e51c7 /target-lm32/cpu.h
parenta946ce802002fe6233adbf1a6222d0837d44fc33 (diff)
target-lm32: add semihosting support
Intercept certain system calls if semihosting is enabled. This should behave like the GDB simulator. Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'target-lm32/cpu.h')
-rw-r--r--target-lm32/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-lm32/cpu.h b/target-lm32/cpu.h
index 24bde78502..70600aa47a 100644
--- a/target-lm32/cpu.h
+++ b/target-lm32/cpu.h
@@ -217,6 +217,7 @@ void lm32_breakpoint_remove(CPULM32State *env, int index);
void lm32_watchpoint_insert(CPULM32State *env, int index, target_ulong address,
lm32_wp_t wp_type);
void lm32_watchpoint_remove(CPULM32State *env, int index);
+bool lm32_cpu_do_semihosting(CPUState *cs);
static inline CPULM32State *cpu_init(const char *cpu_model)
{