New feature: registers can be bulk saved/restored in an opaque blob
This commit is contained in:
@ -19,4 +19,7 @@ void arm_uc_init(struct uc_struct* uc);
|
||||
__attribute__ ((visibility ("default")))
|
||||
void arm64_uc_init(struct uc_struct* uc);
|
||||
|
||||
extern const int ARM_REGS_STORAGE_SIZE;
|
||||
extern const int ARM64_REGS_STORAGE_SIZE;
|
||||
|
||||
#endif
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "uc_priv.h"
|
||||
|
||||
|
||||
const int ARM64_REGS_STORAGE_SIZE = offsetof(CPUARMState, tlb_table);
|
||||
|
||||
static void arm64_set_pc(struct uc_struct *uc, uint64_t address)
|
||||
{
|
||||
((CPUARMState *)uc->current_cpu->env_ptr)->pc = address;
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "uc_priv.h"
|
||||
|
||||
|
||||
const int ARM_REGS_STORAGE_SIZE = offsetof(CPUARMState, tlb_table);
|
||||
|
||||
static void arm_set_pc(struct uc_struct *uc, uint64_t address)
|
||||
{
|
||||
((CPUARMState *)uc->current_cpu->env_ptr)->pc = address;
|
||||
|
Reference in New Issue
Block a user