Eliminate UcGeneric
This commit is contained in:
@@ -383,9 +383,9 @@ class Uc:
|
|||||||
return __wrapped
|
return __wrapped
|
||||||
|
|
||||||
def __uc_generic():
|
def __uc_generic():
|
||||||
return UcGeneric
|
return Uc
|
||||||
|
|
||||||
wrapped = {
|
wrapped: Callable[[], Type[Uc]] = {
|
||||||
uc.UC_ARCH_ARM : __uc_subclass('arm', 'UcAArch32'),
|
uc.UC_ARCH_ARM : __uc_subclass('arm', 'UcAArch32'),
|
||||||
uc.UC_ARCH_ARM64 : __uc_subclass('arm64', 'UcAArch64'),
|
uc.UC_ARCH_ARM64 : __uc_subclass('arm64', 'UcAArch64'),
|
||||||
uc.UC_ARCH_MIPS : __uc_generic,
|
uc.UC_ARCH_MIPS : __uc_generic,
|
||||||
@@ -1049,13 +1049,6 @@ class Uc:
|
|||||||
self.__ctl_w(uc.UC_CTL_TB_FLUSH)
|
self.__ctl_w(uc.UC_CTL_TB_FLUSH)
|
||||||
|
|
||||||
|
|
||||||
class UcGeneric(Uc):
|
|
||||||
"""Unicorn generic architecture subclass.
|
|
||||||
"""
|
|
||||||
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class UcContext:
|
class UcContext:
|
||||||
def __init__(self, h, arch: int, mode: int):
|
def __init__(self, h, arch: int, mode: int):
|
||||||
self._context = uc_context()
|
self._context = uc_context()
|
||||||
|
|||||||
Reference in New Issue
Block a user