mirror of
https://github.com/yuzu-mirror/unicorn.git
synced 2026-04-04 14:07:42 +00:00
bindings: update to support X86 MSR id
This commit is contained in:
parent
fc72622ba8
commit
f4325f8c4e
6 changed files with 14 additions and 9 deletions
|
|
@ -357,11 +357,11 @@ class Uc(object):
|
|||
if status != uc.UC_ERR_OK:
|
||||
raise UcError(status)
|
||||
|
||||
# read from MSR
|
||||
# read from MSR - X86 only
|
||||
def msr_read(self, msr_id):
|
||||
return self.reg_read(x86_const.UC_X86_REG_MSR, msr_id)
|
||||
|
||||
# write to MSR
|
||||
# write to MSR - X86 only
|
||||
def msr_write(self, msr_id, value):
|
||||
return self.reg_write(x86_const.UC_X86_REG_MSR, (msr_id, value))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue