aboutsummaryrefslogtreecommitdiff
path: root/target/m68k/helper.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2018-01-04 02:29:07 +0100
committerLaurent Vivier <laurent@vivier.eu>2018-01-04 17:24:35 +0100
commit0bdb2b3bf5660f892ddbfa09baea56cdca57ad1d (patch)
tree20429d0f28ad8f2e23d90d1cb90705cd329c0c4f /target/m68k/helper.c
parentf58ed1c50add3e76331afdc92387c0da9dd9e443 (diff)
downloadqemu-0bdb2b3bf5660f892ddbfa09baea56cdca57ad1d.zip
qemu-0bdb2b3bf5660f892ddbfa09baea56cdca57ad1d.tar.gz
qemu-0bdb2b3bf5660f892ddbfa09baea56cdca57ad1d.tar.bz2
target/m68k: add reset
The instruction traps if the CPU is not in Supervisor state but the helper is empty because there is no easy way to reset all the peripherals without resetting the CPU itself. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20180104012913.30763-12-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/helper.c')
-rw-r--r--target/m68k/helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/m68k/helper.c b/target/m68k/helper.c
index af57ffc..52b054e 100644
--- a/target/m68k/helper.c
+++ b/target/m68k/helper.c
@@ -711,3 +711,10 @@ void HELPER(set_mac_extu)(CPUM68KState *env, uint32_t val, uint32_t acc)
res |= (uint64_t)(val & 0xffff0000) << 16;
env->macc[acc + 1] = res;
}
+
+#if defined(CONFIG_SOFTMMU)
+void HELPER(reset)(CPUM68KState *env)
+{
+ /* FIXME: reset all except CPU */
+}
+#endif