aboutsummaryrefslogtreecommitdiff
path: root/target/cris
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-06-23 07:08:40 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-06-29 10:04:56 -0700
commit9e9f5ba071a425e0bc2315a66115c0e6924455b3 (patch)
tree2ecf62b565d6c723a4e75cf25227ba1454578e5b /target/cris
parentafd5a3310c073bf0dfdbb5caaa9f70803d0798be (diff)
downloadqemu-9e9f5ba071a425e0bc2315a66115c0e6924455b3.zip
qemu-9e9f5ba071a425e0bc2315a66115c0e6924455b3.tar.gz
qemu-9e9f5ba071a425e0bc2315a66115c0e6924455b3.tar.bz2
target/cris: Set cpustate_changed for rfe/rfn
These insns set DISAS_UPDATE without cpustate_changed, which isn't quite right. Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/cris')
-rw-r--r--target/cris/translate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/cris/translate.c b/target/cris/translate.c
index 80276ae..df92b90 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -2880,6 +2880,7 @@ static int dec_rfe_etc(CPUCRISState *env, DisasContext *dc)
cris_evaluate_flags(dc);
gen_helper_rfe(cpu_env);
dc->base.is_jmp = DISAS_UPDATE;
+ dc->cpustate_changed = true;
break;
case 5:
/* rfn. */
@@ -2887,6 +2888,7 @@ static int dec_rfe_etc(CPUCRISState *env, DisasContext *dc)
cris_evaluate_flags(dc);
gen_helper_rfn(cpu_env);
dc->base.is_jmp = DISAS_UPDATE;
+ dc->cpustate_changed = true;
break;
case 6:
LOG_DIS("break %d\n", dc->op1);