mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
target/arm: Allow deliver_fault() caller to specify EA bit
For external aborts, we will want to be able to specify the EA (external abort type) bit in the syndrome field. Allow callers of deliver_fault() to do that by adding a field to ARMMMUFaultInfo which we use when constructing the syndrome values. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
aac43da1d7
commit
c528af7aa6
2 changed files with 7 additions and 5 deletions
|
@ -448,12 +448,14 @@ void arm_handle_psci_call(ARMCPU *cpu);
|
|||
* @s2addr: Address that caused a fault at stage 2
|
||||
* @stage2: True if we faulted at stage 2
|
||||
* @s1ptw: True if we faulted at stage 2 while doing a stage 1 page-table walk
|
||||
* @ea: True if we should set the EA (external abort type) bit in syndrome
|
||||
*/
|
||||
typedef struct ARMMMUFaultInfo ARMMMUFaultInfo;
|
||||
struct ARMMMUFaultInfo {
|
||||
target_ulong s2addr;
|
||||
bool stage2;
|
||||
bool s1ptw;
|
||||
bool ea;
|
||||
};
|
||||
|
||||
/* Do a page table walk and add page to TLB if possible */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue