changeset ba13184587a5 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=ba13184587a5
description:
BitUnion: Add more constiness.
diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
src/base/bitunion.hh | 12 ++++++------
diffs (57 lines):
diff -r 75adb07279b4 -r ba13184587a5 src/base/bitunion.hh
--- a/src/base/bitunion.hh Sun Jun 21 09:48:51 2009 -0700
+++ b/src/base/bitunion.hh Sun Jun 21 16:40:33 2009 -0700
@@ -86,7 +86,7 @@
class Bitfield : public BitfieldBase<Type>
{
public:
- operator uint64_t () const
+ operator const uint64_t () const
{
return this->getBits(first, last);
}
@@ -117,7 +117,7 @@
class BitfieldWO : public Bitfield<first, last>
{
private:
- operator uint64_t () const;
+ operator const uint64_t () const;
public:
using Bitfield<first, last>::operator=;
@@ -136,7 +136,7 @@
class SignedBitfield : public BitfieldBase<Type>
{
public:
- operator int64_t () const
+ operator const int64_t () const
{
return sext<first - last + 1>(this->getBits(first, last));
}
@@ -167,7 +167,7 @@
class SignedBitfieldWO : public SignedBitfield<first, last>
{
private:
- operator int64_t () const;
+ operator const int64_t () const;
public:
int64_t operator=(const int64_t _data)
@@ -200,7 +200,7 @@
BitUnionOperators() {}
- operator Type () const
+ operator const Type () const
{
return Base::__data;
}
@@ -280,7 +280,7 @@
//do so.
#define EndSubBitUnion(name) \
}; \
- inline operator const __DataType () \
+ inline operator const __DataType () const \
{ return __data; } \
\
inline const __DataType operator = (const __DataType & _data) \
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev