aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/sim-main.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-16 04:49:24 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-16 04:49:24 +0000
commitc7db488f71fb6faf5d327edb3517a879de35ceea (patch)
tree733ea5ee31bd4e41d74a82d63a163bd79562abf7 /sim/v850/sim-main.h
parent896e248fe06ea228be115540fffec18644db6270 (diff)
downloadfsf-binutils-gdb-c7db488f71fb6faf5d327edb3517a879de35ceea.zip
fsf-binutils-gdb-c7db488f71fb6faf5d327edb3517a879de35ceea.tar.gz
fsf-binutils-gdb-c7db488f71fb6faf5d327edb3517a879de35ceea.tar.bz2
Restrict ldsr (load system register) to modifying just non-reserved PSW bits.
For v850eq, include PSW[US] in bits that can be modified.
Diffstat (limited to 'sim/v850/sim-main.h')
-rw-r--r--sim/v850/sim-main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h
index d222282..f7222a1 100644
--- a/sim/v850/sim-main.h
+++ b/sim/v850/sim-main.h
@@ -48,6 +48,7 @@ struct _sim_cpu
{
/* ... simulator specific members ... */
v850_regs reg;
+ reg_t psw_mask; /* only allow non-reserved bits to be set */
/* ... base type ... */
sim_cpu_base base;
};