/* Unicorn Emulator Engine */ /* By Nguyen Anh Quynh , 2015 */ /* Modified for Unicorn Engine by Chen Huitao, 2020 */ #ifndef UC_QEMU_TARGET_RISCV_H #define UC_QEMU_TARGET_RISCV_H // functions to read & write registers int riscv_reg_read(struct uc_struct *uc, unsigned int *regs, void **vals, int count); int riscv_reg_write(struct uc_struct *uc, unsigned int *regs, void *const *vals, int count); int riscv32_context_reg_read(struct uc_context *ctx, unsigned int *regs, void **vals, int count); int riscv32_context_reg_write(struct uc_context *ctx, unsigned int *regs, void *const *vals, int count); int riscv64_context_reg_read(struct uc_context *ctx, unsigned int *regs, void **vals, int count); int riscv64_context_reg_write(struct uc_context *ctx, unsigned int *regs, void *const *vals, int count); void riscv_reg_reset(struct uc_struct *uc); void riscv32_uc_init(struct uc_struct *uc); void riscv64_uc_init(struct uc_struct *uc); #endif