summaryrefslogtreecommitdiffstats
path: root/target-arm/translate-a64.c
diff options
context:
space:
mode:
authorPeter Maydell2014-02-20 11:35:54 +0100
committerPeter Maydell2014-02-20 11:35:54 +0100
commitea4571eb8768c39bf6cacd64fdcb6ef405b18b18 (patch)
tree9641fcba79c7755565a93e1ca338184be2f31f8d /target-arm/translate-a64.c
parenttarget-arm: Drop success/fail return from cpreg read and write functions (diff)
downloadqemu-ea4571eb8768c39bf6cacd64fdcb6ef405b18b18.tar.gz
qemu-ea4571eb8768c39bf6cacd64fdcb6ef405b18b18.tar.xz
qemu-ea4571eb8768c39bf6cacd64fdcb6ef405b18b18.zip
target-arm: Remove unnecessary code now read/write fns can't fail
Now that cpreg read and write functions can't fail and throw an exception, we can remove the code from the translator that synchronises the guest PC in case an exception is thrown. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/translate-a64.c')
-rw-r--r--target-arm/translate-a64.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
index e70d14fe3e..ef305e3fa2 100644
--- a/target-arm/translate-a64.c
+++ b/target-arm/translate-a64.c
@@ -1231,7 +1231,6 @@ static void handle_sys(DisasContext *s, uint32_t insn, bool isread,
tcg_gen_movi_i64(tcg_rt, ri->resetvalue);
} else if (ri->readfn) {
TCGv_ptr tmpptr;
- gen_a64_set_pc_im(s->pc - 4);
tmpptr = tcg_const_ptr(ri);
gen_helper_get_cp_reg64(tcg_rt, cpu_env, tmpptr);
tcg_temp_free_ptr(tmpptr);
@@ -1244,7 +1243,6 @@ static void handle_sys(DisasContext *s, uint32_t insn, bool isread,
return;
} else if (ri->writefn) {
TCGv_ptr tmpptr;
- gen_a64_set_pc_im(s->pc - 4);
tmpptr = tcg_const_ptr(ri);
gen_helper_set_cp_reg64(cpu_env, tmpptr, tcg_rt);
tcg_temp_free_ptr(tmpptr);