All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Hexagon: fix icinva
@ 2026-08-19  4:53 Brian Cain
  2026-08-19  4:53 ` [PATCH 1/2] target/hexagon: invalidate translated code for user icinva Brian Cain
  2026-08-19  4:53 ` [PATCH 2/2] tests/tcg/hexagon: add icinva test Brian Cain
  0 siblings, 2 replies; 8+ messages in thread
From: Brian Cain @ 2026-08-19  4:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: Pierrick Bouvier, Brian Cain

icinva (icache invalidate addr) instruction was a nop, but this behavior
is not correct for userspace.

Also note that this checkpatch issue was bypassed because I believe
it's appropriate/acceptable to check the "guest" page size in a TCG test
case.

    Patch 1/2 has no obvious style problems and is ready for submission.
    2/2 Checking commit ea94abbfc875 (tests/tcg/hexagon: add icinva test)
    ERROR: use qemu_real_host_page_size() instead of sysconf(_SC_PAGESIZE)
    #74: FILE: tests/tcg/hexagon/icinva.c:56:
    +    long pagesize = sysconf(_SC_PAGESIZE);

Brian Cain (2):
  target/hexagon: invalidate translated code for user icinva
  tests/tcg/hexagon: add icinva test

 target/hexagon/gen_tcg.h          |  9 ++++
 target/hexagon/helper.h           |  4 ++
 target/hexagon/op_helper.c        | 15 +++++++
 target/hexagon/translate.c        |  3 ++
 tests/tcg/hexagon/icinva.c        | 71 +++++++++++++++++++++++++++++++
 tests/tcg/hexagon/Makefile.target |  2 +
 6 files changed, 104 insertions(+)
 create mode 100644 tests/tcg/hexagon/icinva.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-08-20 23:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19  4:53 [PATCH 0/2] Hexagon: fix icinva Brian Cain
2026-08-19  4:53 ` [PATCH 1/2] target/hexagon: invalidate translated code for user icinva Brian Cain
2026-08-20 18:37   ` Pierrick Bouvier
2026-08-20 19:00     ` Brian Cain
2026-08-20 19:10       ` Pierrick Bouvier
2026-08-20 23:40       ` Richard Henderson
2026-08-19  4:53 ` [PATCH 2/2] tests/tcg/hexagon: add icinva test Brian Cain
2026-08-20 19:11   ` Pierrick Bouvier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.