summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2012-10-03 21:11:46 +0000
committerSteve Ellcey <sje@cup.hp.com>2012-10-03 21:11:46 +0000
commit5c23f671def03b324f6d6530b0597d39908da0b0 (patch)
treedb44e3615181d5047196b28a0b25e88bfb94e5a9 /sim
parentdc8b40ac76b91e515a1c672de3635391f314d216 (diff)
downloadgdb-5c23f671def03b324f6d6530b0597d39908da0b0.tar.gz
2012-10-04 Chao-ying Fu <fu@mips.com>
Steve Ellcey <sellcey@mips.com> * mips/mips3264r2.igen (rdhwr): New.
Diffstat (limited to 'sim')
-rw-r--r--sim/mips/ChangeLog5
-rw-r--r--sim/mips/mips3264r2.igen11
2 files changed, 16 insertions, 0 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 95e23dea9e4..4d5bde28da5 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-04 Chao-ying Fu <fu@mips.com>
+ Steve Ellcey <sellcey@mips.com>
+
+ * mips/mips3264r2.igen (rdhwr): New.
+
2012-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Always link against dv-sockser.o.
diff --git a/sim/mips/mips3264r2.igen b/sim/mips/mips3264r2.igen
index c52ec3b2c4f..e0b6d5bf640 100644
--- a/sim/mips/mips3264r2.igen
+++ b/sim/mips/mips3264r2.igen
@@ -241,6 +241,17 @@
}
+011111,00000,5.RT,5.RD,00000,111011::32::RDHWR
+"rdhwr r<RT>, r<RD>"
+*mips32r2:
+*mips64r2:
+{
+ // Return 0 for all hardware registers currently
+ GPR[RT] = EXTEND32 (0);
+ TRACE_ALU_RESULT1 (GPR[RT]);
+}
+
+
011111,00000,5.RT,5.RD,00010,100000::32::WSBH
"wsbh r<RD>, r<RT>"
*mips32r2: