From bc0cbe5709e294d9755f481e7f41be68413e14f9 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Thu, 16 Oct 2025 15:05:18 +0200 Subject: executor: unify ARM64_ADDR_EXECUTOR_CODE and X86_SYZOS_ADDR_EXECUTOR_CODE Use SYZOS_ADDR_EXECUTOR_CODE instead of both. Also put platform-specific definitions under #if GOARCH_xxx. --- executor/common_kvm_amd64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/common_kvm_amd64.h') diff --git a/executor/common_kvm_amd64.h b/executor/common_kvm_amd64.h index e0c4a68a2..1783b7686 100644 --- a/executor/common_kvm_amd64.h +++ b/executor/common_kvm_amd64.h @@ -230,7 +230,7 @@ static const struct mem_region syzos_mem_regions[] = { // SYZOS user code (generated by the fuzzer). {X86_SYZOS_ADDR_USER_CODE, KVM_MAX_VCPU, MEM_REGION_FLAG_READONLY | MEM_REGION_FLAG_USER_CODE}, // Executor guest code. - {X86_SYZOS_ADDR_EXECUTOR_CODE, 4, MEM_REGION_FLAG_READONLY | MEM_REGION_FLAG_EXECUTOR_CODE}, + {SYZOS_ADDR_EXECUTOR_CODE, 4, MEM_REGION_FLAG_READONLY | MEM_REGION_FLAG_EXECUTOR_CODE}, // Scratch memory for code generated at runtime. {X86_SYZOS_ADDR_SCRATCH_CODE, 1, 0}, // CPU stack. -- cgit mrf-deployment