diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-11 18:12:33 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-11 18:12:33 -0400 |
commit | 26c0426e443c34c1264ea437692a85a3f0967614 (patch) | |
tree | 28e32799d450e34ba0c6431613c26f0eafa3b7fb /src/base | |
parent | 78cf033dc0041fe7298765732b26c00a9732ccc5 (diff) | |
download | gem5-26c0426e443c34c1264ea437692a85a3f0967614.tar.xz |
Make sttw and sttwa use the twin memory operations.
--HG--
extra : convert_revision : 368d1c57a46fd5ca15461cb5ee8e05fd1e080daa
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/bigint.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/base/bigint.hh b/src/base/bigint.hh index ed48c67fe..d60684231 100644 --- a/src/base/bigint.hh +++ b/src/base/bigint.hh @@ -28,6 +28,8 @@ * Authors: Ali Saidi */ +#include "base/misc.hh" + #include <iostream> #ifndef __BASE_BIGINT_HH__ @@ -49,6 +51,12 @@ struct m5_twin64_t { b = x; return *this; } + + operator uint64_t() + { + panic("Tried to cram a twin64_t into an integer!\n"); + return a; + } }; struct m5_twin32_t { @@ -67,6 +75,12 @@ struct m5_twin32_t { b = x; return *this; } + + operator uint32_t() + { + panic("Tried to cram a twin32_t into an integer!\n"); + return a; + } }; |