proxy.py: Rename reboot() to reload()

reboot() is confusing (it doesn't reboot the system)

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-06-04 15:00:24 +09:00
parent 393089f076
commit 89a7a3a5b1
2 changed files with 3 additions and 3 deletions

View file

@ -111,8 +111,8 @@ if args.call:
print(f"Jumping to stub at 0x{stub.addr:x}")
p.call(stub.addr, new_base + bootargs_off, image_addr, new_base, image_size, reboot=True)
else:
print(f"Rebooting into stub at 0x{stub.addr:x}")
p.reboot(stub.addr, new_base + bootargs_off, image_addr, new_base, image_size)
print(f"Reloading into stub at 0x{stub.addr:x}")
p.reload(stub.addr, new_base + bootargs_off, image_addr, new_base, image_size)
time.sleep(1)
iface.nop()

View file

@ -653,7 +653,7 @@ class M1N1Proxy:
if len(args) > 4:
raise ValueError("Too many arguments")
return self.request(self.P_CALL, addr, *args, reboot=reboot)
def reboot(self, addr, *args, el1=False):
def reload(self, addr, *args, el1=False):
if len(args) > 4:
raise ValueError("Too many arguments")
if el1: