compile: wrap 64bit numbers with ULL() so 32bit compiles work
In the isa_parser, we need to check case statements.
This commit is contained in:
@@ -585,7 +585,12 @@ StaticInstPtr
|
||||
# 'default'
|
||||
def p_case_label_0(self, t):
|
||||
'case_label : intlit_list'
|
||||
t[0] = ': '.join(map(lambda a: 'case %#x' % a, t[1]))
|
||||
def make_case(intlit):
|
||||
if intlit >= 2**32:
|
||||
return 'case ULL(%#x)' % intlit
|
||||
else:
|
||||
return 'case %#x' % intlit
|
||||
t[0] = ': '.join(map(make_case, t[1]))
|
||||
|
||||
def p_case_label_1(self, t):
|
||||
'case_label : DEFAULT'
|
||||
|
||||
@@ -175,7 +175,7 @@ I386LiveProcess::I386LiveProcess(LiveProcessParams *params,
|
||||
int _numSyscallDescs) :
|
||||
X86LiveProcess(params, objFile, _syscallDescs, _numSyscallDescs)
|
||||
{
|
||||
_gdtStart = 0x100000000;
|
||||
_gdtStart = ULL(0x100000000);
|
||||
_gdtSize = VMPageSize;
|
||||
|
||||
vsyscallPage.base = 0xffffe000ULL;
|
||||
|
||||
Reference in New Issue
Block a user