mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-11 07:36:57 +00:00
arm64: include missing definitions
Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
parent
43bcf7e9a7
commit
b54b3d97cd
2 changed files with 3 additions and 5 deletions
|
|
@ -163,9 +163,5 @@ void cpuTest()
|
||||||
guest_ram.size = guest_memory_arena.capacity;
|
guest_ram.size = guest_memory_arena.capacity;
|
||||||
|
|
||||||
(void)test_guest_ram_access(&guest_ram);
|
(void)test_guest_ram_access(&guest_ram);
|
||||||
vcpu_states[0].sctlr_el1 = 3;
|
|
||||||
uint64_t out = 0;
|
|
||||||
uint64_t gva = 2636;
|
|
||||||
assert(0 == pound::arm64::memory::mmu_gva_to_gpa(&vcpu_states[0], gva, &out));
|
|
||||||
}
|
}
|
||||||
} // namespace pound::armv64
|
} // namespace pound::armv64
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "isa.h"
|
||||||
|
|
||||||
namespace pound::arn64::memory
|
namespace pound::arn64::memory
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
@ -32,5 +34,5 @@ namespace pound::arn64::memory
|
||||||
* Return: 0 on successful translation. A negative error code on a translation
|
* Return: 0 on successful translation. A negative error code on a translation
|
||||||
* fault (e.g., for a page fault, permission error, or alignment fault).
|
* fault (e.g., for a page fault, permission error, or alignment fault).
|
||||||
*/
|
*/
|
||||||
int mmu_gva_to_gpa(vcpu_state_t* vcpu, uint64_t gva, uint64_t* out_gpa);
|
int mmu_gva_to_gpa(pound::arm64::vcpu_state_t* vcpu, uint64_t gva, uint64_t* out_gpa);
|
||||||
} // namespace pound::arn64::memory
|
} // namespace pound::arn64::memory
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue