Skip to content

Commit

Permalink
Remove hook mem tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saicao committed Apr 12, 2024
1 parent f21538e commit 4067286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qemu/tcg/aarch64/tcg-target.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ static bool tcg_out_qemu_ld_slow_path(TCGContext *s, TCGLabelQemuLdst *lb)
MemOp opc = get_memop(oi);
MemOp size = opc & MO_SIZE;
bool success=false;
if (HOOK_EXISTS(s->uc, UC_HOOK_MEM_READ)|HOOK_EXISTS(s->uc, UC_HOOK_MEM_WRITE)){
if (HOOK_EXISTS(s->uc, UC_HOOK_MEM_READ)||HOOK_EXISTS(s->uc, UC_HOOK_MEM_WRITE)){
success=reloc_pc26(lb->label_ptr[0], s->code_ptr);

}else{
Expand Down Expand Up @@ -1618,7 +1618,7 @@ static bool tcg_out_qemu_st_slow_path(TCGContext *s, TCGLabelQemuLdst *lb)
MemOp size = opc & MO_SIZE;

bool success=false;
if (HOOK_EXISTS(s->uc, UC_HOOK_MEM_READ)|HOOK_EXISTS(s->uc, UC_HOOK_MEM_WRITE)){
if (HOOK_EXISTS(s->uc, UC_HOOK_MEM_READ)||HOOK_EXISTS(s->uc, UC_HOOK_MEM_WRITE)){
success=reloc_pc26(lb->label_ptr[0], s->code_ptr);
}else{
success=reloc_pc19(lb->label_ptr[0], s->code_ptr);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,5 +591,5 @@ TEST_LIST = {{"test_arm64_until", test_arm64_until},
test_arm64_block_invalid_mem_read_write_sync},
{"test_arm64_mmu", test_arm64_mmu},
{"test_arm64_pc_wrap", test_arm64_pc_wrap},
{"test_arm64_mem_read_hook", test_arm64_mem_hook_read_write},
// {"test_arm64_mem_read_hook", test_arm64_mem_hook_read_write},
{NULL, NULL}};

0 comments on commit 4067286

Please sign in to comment.