aboutsummaryrefslogtreecommitdiff
path: root/sim/rx
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2010-09-24 05:18:23 +0000
committerKevin Buettner <kevinb@redhat.com>2010-09-24 05:18:23 +0000
commite537977262c187604a7bf352617df6524330fb90 (patch)
tree32da1853ffedede5c5bd54c72a9bcf34a84af457 /sim/rx
parent3c7be86bc0ecd073263e7f1a8cbbdab937f511b0 (diff)
downloadfsf-binutils-gdb-e537977262c187604a7bf352617df6524330fb90.zip
fsf-binutils-gdb-e537977262c187604a7bf352617df6524330fb90.tar.gz
fsf-binutils-gdb-e537977262c187604a7bf352617df6524330fb90.tar.bz2
* rx.c (decode_opcode): Add cycle information for RXO_smovu.
Diffstat (limited to 'sim/rx')
-rw-r--r--sim/rx/ChangeLog4
-rw-r--r--sim/rx/rx.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 275fdbd..ed363da 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,5 +1,9 @@
2010-09-23 Kevin Buettner <kevinb@redhat.com>
+ * rx.c (decode_opcode): Add cycle information for RXO_smovu.
+
+2010-09-23 Kevin Buettner <kevinb@redhat.com>
+
* fpu.c, gdb-if.c, load.c, misc.c, syscalls.c (config.h): Include.
* rx.c (decode_opcode): Declare `tx' as unsigned.
diff --git a/sim/rx/rx.c b/sim/rx/rx.c
index 19b896b..17f5b46 100644
--- a/sim/rx/rx.c
+++ b/sim/rx/rx.c
@@ -1818,6 +1818,9 @@ decode_opcode ()
break;
case RXO_smovu:
+#ifdef CYCLE_ACCURATE
+ tx = regs.r[3];
+#endif
while (regs.r[3] != 0)
{
uma = mem_get_qi (regs.r[2] ++);
@@ -1826,6 +1829,7 @@ decode_opcode ()
if (uma == 0)
break;
}
+ cycles (2 + 3 * (int)(tx / 4) + 3 * (tx % 4));
break;
case RXO_shar: /* d = ma >> mb */