summaryrefslogtreecommitdiffstats
path: root/target/riscv/cpu.h
diff options
context:
space:
mode:
authorAlistair Francis2020-02-01 02:01:38 +0100
committerPalmer Dabbelt2020-02-27 22:45:23 +0100
commit028616130d5f0abc8a3b96f28963da51a875024b (patch)
treecce777910468c573b1cdb5a494acf5c1743f200c /target/riscv/cpu.h
parentMerge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (diff)
downloadqemu-028616130d5f0abc8a3b96f28963da51a875024b.tar.gz
qemu-028616130d5f0abc8a3b96f28963da51a875024b.tar.xz
qemu-028616130d5f0abc8a3b96f28963da51a875024b.zip
target/riscv: Convert MIP CSR to target_ulong
The MIP CSR is a xlen CSR, it was only 32-bits to allow atomic access. Now that we don't use atomics for MIP we can change this back to a xlen CSR. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.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 de0a8d893a..95de9e58a2 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -121,7 +121,7 @@ struct CPURISCVState {
target_ulong mhartid;
target_ulong mstatus;
- uint32_t mip;
+ target_ulong mip;
uint32_t miclaim;
target_ulong mie;