projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Properly save/restore dpc, mcause, mbadaddr.
[riscv-isa-sim.git]
/
riscv
/
gdbserver.h
diff --git
a/riscv/gdbserver.h
b/riscv/gdbserver.h
index 35e12b82b4e9614ec2f51232f635ef2d68bcf2d6..acd68b3b4351b176eb8ac9a39138b8584f3b2c0d 100644
(file)
--- a/
riscv/gdbserver.h
+++ b/
riscv/gdbserver.h
@@
-132,6
+132,12
@@
public:
void set_interrupt(uint32_t hartid);
+ // Members that ought to be privated, but that we'd really like to access
+ // from operation classes.
+ reg_t saved_dpc;
+ reg_t saved_mbadaddr;
+ reg_t saved_mcause;
+
private:
sim_t *sim;
int socket_fd;