summaryrefslogtreecommitdiffstats
path: root/target/riscv/cpu.h
diff options
context:
space:
mode:
authorAlistair Francis2019-08-23 17:21:25 +0200
committerPalmer Dabbelt2019-09-17 17:42:50 +0200
commitbdce1a5c6d512257f83b6b6831bee2c975643bbd (patch)
treea0e6acf8558da3b6cd06e54d7474532af00a7814 /target/riscv/cpu.h
parenttarget/riscv: Fix mstatus dirty mask (diff)
downloadqemu-bdce1a5c6d512257f83b6b6831bee2c975643bbd.tar.gz
qemu-bdce1a5c6d512257f83b6b6831bee2c975643bbd.tar.xz
qemu-bdce1a5c6d512257f83b6b6831bee2c975643bbd.zip
target/riscv: Use TB_FLAGS_MSTATUS_FS for floating point
Use the TB_FLAGS_MSTATUS_FS macro when enabling floating point in the tb flags. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'target/riscv/cpu.h')
-rw-r--r--target/riscv/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 16efe8c860..124ed33ee4 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -301,7 +301,7 @@ static inline void cpu_get_tb_cpu_state(CPURISCVState *env, target_ulong *pc,
#else
*flags = cpu_mmu_index(env, 0);
if (riscv_cpu_fp_enabled(env)) {
- *flags |= env->mstatus & MSTATUS_FS;
+ *flags |= TB_FLAGS_MSTATUS_FS;
}
#endif
}