gem5 baremetal cli!!!

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/67
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-04-02 02:00:01 +00:00
parent 637ef640bf
commit b7887ac06b
4 changed files with 49 additions and 34 deletions

View File

@@ -1247,6 +1247,16 @@ lunch aosp_{}-eng
)
)
@staticmethod
def python_escape_double_quotes(s):
s2 = []
for c in s:
if c == '"':
s2.append('\\"')
else:
s2.append(c)
return ''.join(s2)
@staticmethod
def python_struct_int_format(size):
if size == 4: