summaryrefslogtreecommitdiffstats
path: root/target/microblaze/cpu.h
diff options
context:
space:
mode:
authorJoe Komlodi2021-01-22 01:18:55 +0100
committerEdgar E. Iglesias2021-01-27 08:32:55 +0100
commit43a9ede1efd12d297278d017ce7df7130672e15d (patch)
treed8a5a7f8dcf65b05ad3c4b6fd94f6ff0233afe4e /target/microblaze/cpu.h
parenttarget/microblaze: use MMUAccessType instead of int in mmu_translate (diff)
downloadqemu-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.h3
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);