mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 12:06:47 +00:00
target/arm: Enable MTE
We now implement all of the components of MTE, without actually supporting any tagged memory. All MTE instructions will work, trivially, so we can enable support. Backports commit c7459633baa71d1781fde4a245d6ec9ce2f008cf from qemu
This commit is contained in:
parent
a34fda25b0
commit
54e2107bdf
|
@ -299,6 +299,11 @@ static void aarch64_max_initfn(struct uc_struct *uc, Object *obj, void *opaque)
|
|||
|
||||
t = cpu->isar.id_aa64pfr1;
|
||||
t = FIELD_DP64(t, ID_AA64PFR1, BT, 1);
|
||||
/*
|
||||
* Begin with full support for MTE; will be downgraded to MTE=1
|
||||
* during realize if the board provides no tag memory.
|
||||
*/
|
||||
t = FIELD_DP64(t, ID_AA64PFR1, MTE, 2);
|
||||
cpu->isar.id_aa64pfr1 = t;
|
||||
|
||||
t = cpu->isar.id_aa64mmfr1;
|
||||
|
|
Loading…
Reference in a new issue