We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7b832 commit 3063233Copy full SHA for 3063233
qiling/os/memory.py
@@ -32,15 +32,15 @@ def __init__(self, ql: Qiling):
32
self.map_info: MutableSequence[MapInfoEntry] = []
33
34
bit_stuff = {
35
- 64 : (0xFFFFFFFFFFFFFFFF,),
36
- 32 : (0xFFFFFFFF,),
37
- 16 : (0xFFFFF,) # 20bit address line
+ 64 : (1 << 64) - 1,
+ 32 : (1 << 32) - 1,
+ 16 : (1 << 20) - 1 # 20bit address line
38
}
39
40
if ql.archbit not in bit_stuff:
41
raise QlErrorStructConversion("Unsupported Qiling archtecture for memory manager")
42
43
- max_addr, = bit_stuff[ql.archbit]
+ max_addr = bit_stuff[ql.archbit]
44
45
#self.read_ptr = read_ptr
46
self.max_addr = max_addr
0 commit comments