mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 08:48:13 +00:00
Revert "arm64: fix the access to tcg_op_defs[] in arm64 backend (issue #387)"
This reverts commit 3000ca6abf
.
This commit is contained in:
parent
3000ca6abf
commit
840eb54f05
2 changed files with 4 additions and 9 deletions
|
@ -1241,7 +1241,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
|
||||||
{
|
{
|
||||||
/* 99% of the time, we can signal the use of extension registers
|
/* 99% of the time, we can signal the use of extension registers
|
||||||
by looking to see if the opcode handles 64-bit data. */
|
by looking to see if the opcode handles 64-bit data. */
|
||||||
TCGType ext = (s->tcg_op_defs[opc].flags & TCG_OPF_64BIT) != 0;
|
TCGType ext = (tcg_op_defs[opc].flags & TCG_OPF_64BIT) != 0;
|
||||||
|
|
||||||
/* Hoist the loads of the most common arguments. */
|
/* Hoist the loads of the most common arguments. */
|
||||||
TCGArg a0 = args[0];
|
TCGArg a0 = args[0];
|
||||||
|
|
|
@ -201,14 +201,9 @@ static void hook_mem32(uc_engine *uc,
|
||||||
//uint32_t tmp[1];
|
//uint32_t tmp[1];
|
||||||
|
|
||||||
ctype = '?';
|
ctype = '?';
|
||||||
if (type == UC_MEM_READ) {
|
if (type == 16) ctype = 'R';
|
||||||
ctype = 'R';
|
if (type == 17) ctype = 'W';
|
||||||
printf("hook_mem32(%c): Address: 0x%"PRIx64", Size: %d \n", ctype, address, size);
|
printf("hook_mem32(%c): Address: 0x%"PRIx64", Size: %d, Value:0x%"PRIx64"\n", ctype, address, size, value);
|
||||||
}
|
|
||||||
if (type == UC_MEM_WRITE) {
|
|
||||||
ctype = 'W';
|
|
||||||
printf("hook_mem32(%c): Address: 0x%"PRIx64", Size: %d, Value:0x%"PRIx64"\n", ctype, address, size, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// if (!uc_mem_read(uc, 0x6000003a, tmp, 4))
|
// if (!uc_mem_read(uc, 0x6000003a, tmp, 4))
|
||||||
// {
|
// {
|
||||||
|
|
Loading…
Reference in a new issue