hexagon: Remove wait{,_next_pc}
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 9 repliesIn review
- v14 patches 5 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | target/hexagon: pass the packet PC to lock implementationstarget/ target/ target/ +1 more | +21 | 8 replies | |
| 2/4 | target/hexagon: stage the PC in the PC register, drop next_PCtarget/ target/ target/ +5 more | +22 | 0 replies | |
| 3/4 | target/hexagon: drop wait_next_pctarget/ target/ target/ +6 more | +7 | 0 replies | |
| 4/4 | tests/functional/hexagon: add bestwait systesttests/ | +3 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Taylor Simpson | Pierrick Bouvier |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/4] hexagon: Remove wait{,_next_pc}
Handling the PC update behavior for wait, locking instructions, COF etc. was managed with extra state. But if we pass the current-packet PC to {k0,tlb}lock, they can update PC when pending. And preloading the PC with the next packet address before executing instructions that could end a TB lets wait() use the PC directly.
This series makes no functional change. The bestwait test case, which exercises the wait instruction and the hardware scheduler feature has been added, but this test passes on the baseline.
Worth a second opinion: this series modifies the CPU VMStateDescription but does not update the version_id. I plan to continue making changes along these lines, leading up to the 11.2 release. I hope that it's appropriate/valid to only update the version_id to capture changes between releases, not merely changes between pull requests.
In v2:
- Switched to TARGET_FMT_lx
- Removed unrelated noise hex_tlb_find_match() change
- Dropped the special cases for Y2_k0lock and Y2_tlblock in hex_common.py
- Use ctx->next_PC consistently
- Clarified commit message for 'pass the packet PC to lock implementations'
v1: https://lore.kernel.org/qemu-devel/[email protected]/
Brian Cain (4):
target/hexagon: pass the packet PC to lock implementations target/hexagon: stage the PC in the PC register, drop next_PC target/hexagon: drop wait_next_pc tests/functional/hexagon: add bestwait systest
target/hexagon/cpu.h | 2 -- target/hexagon/gen_tcg_sys.h | 2 +- target/hexagon/helper.h | 2 +- target/hexagon/hex_mmu.h | 2 +- target/hexagon/sys_macros.h | 4 ++-- target/hexagon/translate.h | 2 -- target/hexagon/cpu.c | 2 -- target/hexagon/cpu_helper.c | 8 ------- target/hexagon/genptr.c | 14 +++--------- target/hexagon/hex_interrupts.c | 4 +--- target/hexagon/hex_mmu.c | 16 ++++++++------ target/hexagon/hexswi.c | 2 +- target/hexagon/machine.c | 2 -- target/hexagon/op_helper.c | 25 +++++++++++---------- target/hexagon/translate.c | 27 ++++++++++++----------- tests/functional/hexagon/test_systests.py | 3 +++ 16 files changed, 49 insertions(+), 68 deletions(-)
Signature · 1 line
2.34.1