Sync HOOK_INSN hooks

This commit is contained in:
mio
2025-04-12 23:22:04 +08:00
parent 015e2f27ff
commit 83ad137ac2
3 changed files with 55 additions and 19 deletions

View File

@@ -40,12 +40,12 @@ typedef struct MemoryRegionPortio {
#define PORTIO_END_OF_LIST() { }
void cpu_outb(struct uc_struct *uc, uint32_t addr, uint8_t val);
void cpu_outw(struct uc_struct *uc, uint32_t addr, uint16_t val);
void cpu_outl(struct uc_struct *uc, uint32_t addr, uint32_t val);
uint8_t cpu_inb(struct uc_struct *uc, uint32_t addr);
uint16_t cpu_inw(struct uc_struct *uc, uint32_t addr);
uint32_t cpu_inl(struct uc_struct *uc, uint32_t addr);
void cpu_outb(struct uc_struct *uc, uint32_t addr, uint8_t val, uintptr_t retaddr);
void cpu_outw(struct uc_struct *uc, uint32_t addr, uint16_t val, uintptr_t retaddr);
void cpu_outl(struct uc_struct *uc, uint32_t addr, uint32_t val, uintptr_t retaddr);
uint8_t cpu_inb(struct uc_struct *uc, uint32_t addr, uintptr_t retaddr);
uint16_t cpu_inw(struct uc_struct *uc, uint32_t addr, uintptr_t retaddr);
uint32_t cpu_inl(struct uc_struct *uc, uint32_t addr, uintptr_t retaddr);
typedef struct PortioList {
const struct MemoryRegionPortio *ports;