New feature: registers can be bulk saved/restored in an opaque blob
This commit is contained in:
@ -9,6 +9,14 @@
|
||||
#include "unicorn_common.h"
|
||||
#include "uc_priv.h"
|
||||
|
||||
// prevent the lines from being compiled twice
|
||||
#ifdef TARGET_WORDS_BIGENDIAN
|
||||
#ifdef TARGET_MIPS64
|
||||
const int MIPS64_REGS_STORAGE_SIZE = offsetof(CPUMIPSState, tlb_table);
|
||||
#else // MIPS32
|
||||
const int MIPS_REGS_STORAGE_SIZE = offsetof(CPUMIPSState, tlb_table);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static uint64_t mips_mem_redirect(uint64_t address)
|
||||
{
|
||||
|
@ -15,4 +15,7 @@ void mipsel_uc_init(struct uc_struct* uc);
|
||||
void mips64_uc_init(struct uc_struct* uc);
|
||||
void mips64el_uc_init(struct uc_struct* uc);
|
||||
|
||||
extern const int MIPS_REGS_STORAGE_SIZE;
|
||||
extern const int MIPS64_REGS_STORAGE_SIZE;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user