From 26c0426e443c34c1264ea437692a85a3f0967614 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 11 Mar 2007 18:12:33 -0400 Subject: Make sttw and sttwa use the twin memory operations. --HG-- extra : convert_revision : 368d1c57a46fd5ca15461cb5ee8e05fd1e080daa --- src/base/bigint.hh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/base') 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 #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; + } }; -- cgit v1.2.3