target-arm queue
Just two small bug fixes for the next rc.
The following changes since commit f345abe36527a8b575482bb5a0616f43952bf1f4:
Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2022-03-25 10:14:47 +0000)
are available in the Git repository at:
https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20220325
for you to fetch changes up to c7ca3ad5e756e263daf082c315e311593ccec3d1:
hw/intc/arm_gicv3_its: Add missing newlines to process_mapc() logging (2022-03-25 14:41:06 +0000)
----------------------------------------------------------------
target-arm queue:
* hw/intc/arm_gicv3_its: Add missing newlines to process_mapc() logging
* target/arm: Fix sve_ld1_z and sve_st1_z vs MMIO
----------------------------------------------------------------
Peter Maydell (1):
hw/intc/arm_gicv3_its: Add missing newlines to process_mapc() logging
Richard Henderson (1):
target/arm: Fix sve_ld1_z and sve_st1_z vs MMIO
hw/intc/arm_gicv3_its.c | 4 ++-- target/arm/sve_helper.c | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-)
[PULL 1/2] target/arm: Fix sve_ld1_z and sve_st1_z vs MMIO
From: Richard Henderson <[email protected]>
Both of these functions missed handling the TLB_MMIO flag during the conversion to handle MTE.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/925
Message-id: [email protected]
--- target/arm/sve_helper.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
target/arm/sve_helper.c +8 -2
@@ -6734,7 +6734,11 @@ void sve_ld1_z(CPUARMState *env, void *vd, uint64_t *vg, void *vm,if (mtedesc &&arm_tlb_mte_tagged (&info.attrs)) {mte_check (env, mtedesc, addr, retaddr); } -host_fn (&scratch, reg_off, info.host); +if (unlikely (info.flags &TLB_MMIO )) { +tlb_fn (env, &scratch, reg_off, addr, retaddr); + }else { +host_fn (&scratch, reg_off, info.host); + } }else {/* Element crosses the page boundary. */ sve_probe_page(&info2, false, env, addr + in_page, 0,
@@ -7112,7 +7116,9 @@ void sve_st1_z(CPUARMState *env, void *vd, uint64_t *vg, void *vm,if (likely (in_page >= msize)) {sve_probe_page (&info, false, env, addr,0 ,MMU_DATA_STORE , mmu_idx, retaddr); - host[i] = info.host; +if (!(info.flags &TLB_MMIO )) { + host[i] = info.host; + } }else {/* * Element crosses the page boundary.
Signature · 1 line
2.25.1
[PULL 2/2] hw/intc/arm_gicv3_its: Add missing newlines to process_mapc() logging
In reply to Peter MaydellIn commit 84d43d2e82da we rearranged the logging of errors in process_mapc(), and inadvertently dropped the trailing newlines from the log messages. Restore them. The same commit also attempted to switch the ICID printing to hex (which is how we print ICIDs elsewhere) but only did half the job, adding the 0x prefix but leaving the format string at %d; correct to %x.
--- hw/intc/arm_gicv3_its.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/intc/arm_gicv3_its.c +2 -2
@@ -524,12 +524,12 @@ static ItsCmdResult process_mapc(GICv3ITSState *s, const uint64_t *cmdpkt)trace_gicv3_its_cmd_mapc (icid, cte.rdbase, cte.valid);if (icid >= s->ct.num_entries) { -qemu_log_mask (LOG_GUEST_ERROR ,"ITS MAPC: invalid ICID 0x%d" , icid); +qemu_log_mask (LOG_GUEST_ERROR ,"ITS MAPC: invalid ICID 0x%x\n" , icid);return CMD_CONTINUE ; }if (cte.valid && cte.rdbase >= s->gicv3->num_cpu) {qemu_log_mask (LOG_GUEST_ERROR , -"ITS MAPC: invalid RDBASE %u " , cte.rdbase); +"ITS MAPC: invalid RDBASE %u\n" , cte.rdbase);return CMD_CONTINUE ; }
Signature · 1 line
2.25.1
Peter Maydell
AppliedQuoted 11 lines · Peter Maydell
Just two small bug fixes for the next rc.
The following changes since commit
f345abe36527a8b575482bb5a0616f43952bf1f4:Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2022-03-25 10:14:47 +0000)
are available in the Git repository at:
https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20220325
Quoted 9 lines
for you to fetch changes up to
c7ca3ad5e756e263daf082c315e311593ccec3d1:hw/intc/arm_gicv3_its: Add missing newlines to
process_mapc()logging (2022-03-25 14:41:06 +0000)----------------------------------------------------------------
target-arm queue:
* hw/intc/arm_gicv3_its: Add missing newlines toprocess_mapc()logging
* target/arm: Fixsve_ld1_zandsve_st1_zvs MMIO
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.0
for any user-visible changes.
-- PMM