Fix codegen pointer register reads.
This commit is contained in:
parent
335cea3ee1
commit
356f406b22
9 changed files with 118 additions and 1 deletions
|
|
@ -2829,6 +2829,10 @@ void codegen_direct_read_32(codeblock_t *block, int host_reg, void *p)
|
|||
else
|
||||
fatal("codegen_direct_read_32 - not in range\n");
|
||||
}
|
||||
void codegen_direct_read_pointer(codeblock_t *block, int host_reg, void *p)
|
||||
{
|
||||
codegen_direct_read_32(block, host_reg, p);
|
||||
}
|
||||
void codegen_direct_read_64(codeblock_t *block, int host_reg, void *p)
|
||||
{
|
||||
host_arm_VLDR_D(block, host_reg, REG_CPUSTATE, (uintptr_t)p - (uintptr_t)&cpu_state);
|
||||
|
|
@ -2941,6 +2945,10 @@ void codegen_direct_read_32_stack(codeblock_t *block, int host_reg, int stack_of
|
|||
else
|
||||
fatal("codegen_direct_read_32 - not in range\n");
|
||||
}
|
||||
void codegen_direct_read_pointer_stack(codeblock_t *block, int host_reg, int stack_offset)
|
||||
{
|
||||
codegen_direct_read_32_stack(block, host_reg, stack_offset);
|
||||
}
|
||||
void codegen_direct_read_64_stack(codeblock_t *block, int host_reg, int stack_offset)
|
||||
{
|
||||
host_arm_VLDR_D(block, host_reg, REG_HOST_SP, stack_offset);
|
||||
|
|
|
|||
Loading…
Reference in a new issue