changeset e2c5da9e28cc in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=e2c5da9e28cc
description:
        dev: Fix bifield definition in timer_cpulocal.hh

        Bitfield definition in the local timer model for ARM had the bitfield
        range numbers reversed which could lead to buggy behavior.

diffstat:

 src/dev/arm/timer_cpulocal.hh |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 0fd64ccb4c93 -r e2c5da9e28cc src/dev/arm/timer_cpulocal.hh
--- a/src/dev/arm/timer_cpulocal.hh     Fri Sep 07 14:20:53 2012 -0500
+++ b/src/dev/arm/timer_cpulocal.hh     Fri Sep 07 14:20:53 2012 -0500
@@ -77,8 +77,8 @@
             Bitfield<0>   enable;
             Bitfield<1>   autoReload;
             Bitfield<2>   intEnable;
-            Bitfield<3,7> reserved;
-            Bitfield<8,15> prescalar;
+            Bitfield<7,3> reserved;
+            Bitfield<15,8> prescalar;
         EndBitUnion(TimerCtrl)
 
         BitUnion32(WatchdogCtrl)
@@ -86,8 +86,8 @@
             Bitfield<1>   autoReload;
             Bitfield<2>   intEnable;
             Bitfield<3>   watchdogMode;
-            Bitfield<4,7> reserved;
-            Bitfield<8,15> prescalar;
+            Bitfield<7,4> reserved;
+            Bitfield<15,8> prescalar;
         EndBitUnion(WatchdogCtrl)
 
       protected:
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to