aboutsummaryrefslogtreecommitdiff
path: root/target/arm/translate-vfp.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-10-20 13:06:35 +1000
committerPeter Maydell <peter.maydell@linaro.org>2022-10-20 11:27:52 +0100
commitc44c8b8b99959068801726be97b6a444ee2989bc (patch)
treec7430647b4aebcc25050dea8b4dca00be22e9bab /target/arm/translate-vfp.c
parent168122419ed1c4087748e21131a523c6d9b632e1 (diff)
downloadqemu-c44c8b8b99959068801726be97b6a444ee2989bc.zip
qemu-c44c8b8b99959068801726be97b6a444ee2989bc.tar.gz
qemu-c44c8b8b99959068801726be97b6a444ee2989bc.tar.bz2
target/arm: Change gen_*set_pc_im to gen_*update_pc
In preparation for TARGET_TB_PCREL, reduce reliance on absolute values by passing in pc difference. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20221020030641.2066807-4-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/translate-vfp.c')
-rw-r--r--target/arm/translate-vfp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/translate-vfp.c b/target/arm/translate-vfp.c
index 94cc1e4..070f465 100644
--- a/target/arm/translate-vfp.c
+++ b/target/arm/translate-vfp.c
@@ -856,7 +856,7 @@ static bool trans_VMSR_VMRS(DisasContext *s, arg_VMSR_VMRS *a)
case ARM_VFP_FPSID:
if (s->current_el == 1) {
gen_set_condexec(s);
- gen_set_pc_im(s, s->pc_curr);
+ gen_update_pc(s, 0);
gen_helper_check_hcr_el2_trap(cpu_env,
tcg_constant_i32(a->rt),
tcg_constant_i32(a->reg));