diff options
| author | Joe Komlodi | 2021-01-22 01:18:55 +0100 |
|---|---|---|
| committer | Edgar E. Iglesias | 2021-01-27 08:32:55 +0100 |
| commit | 43a9ede1efd12d297278d017ce7df7130672e15d (patch) | |
| tree | d8a5a7f8dcf65b05ad3c4b6fd94f6ff0233afe4e /target/microblaze/cpu.h | |
| parent | target/microblaze: use MMUAccessType instead of int in mmu_translate (diff) | |
| download | qemu-43a9ede1efd12d297278d017ce7df7130672e15d.tar.gz qemu-43a9ede1efd12d297278d017ce7df7130672e15d.tar.xz qemu-43a9ede1efd12d297278d017ce7df7130672e15d.zip | |
target/microblaze: Add security attributes on memory transactions
Using the cfg.use_non_secure bitfield and the MMU access type, we can determine
if the access should be secure or not.
Signed-off-by: Joe Komlodi <komlodi@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-Id: <1611274735-303873-4-git-send-email-komlodi@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target/microblaze/cpu.h')
| -rw-r--r-- | target/microblaze/cpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h index 199cfb02d6..e4bba8a755 100644 --- a/target/microblaze/cpu.h +++ b/target/microblaze/cpu.h @@ -361,7 +361,8 @@ void mb_cpu_do_unaligned_access(CPUState *cs, vaddr vaddr, MMUAccessType access_type, int mmu_idx, uintptr_t retaddr); void mb_cpu_dump_state(CPUState *cpu, FILE *f, int flags); -hwaddr mb_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); +hwaddr mb_cpu_get_phys_page_attrs_debug(CPUState *cpu, vaddr addr, + MemTxAttrs *attrs); int mb_cpu_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg); int mb_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); |
