mbox series

[v2,0/2] target/xtensa: convert to do_transaction_failed

Message ID 20180829011652.4466-1-jcmvbkbc@gmail.com
Headers show
Series target/xtensa: convert to do_transaction_failed | expand

Message

Max Filippov Aug. 29, 2018, 1:16 a.m. UTC
Hello,

this series converts target/xtensa to use do_transaction_failed callback
and adds a test that checks various types of access to the physically
unmapped addresses.

Changes v1->v2:
- change ldl_phys to address_space_ldl in get_pte and check transaction
  for success;
- add tests that attempt TLB autorefill from the physically unmapped
  addresses.

Max Filippov (2):
  target/xtensa: convert to do_transaction_failed
  tests/tcg/xtensa: add test for failed memory transactions

 target/xtensa/cpu.c              |   2 +-
 target/xtensa/cpu.h              |   7 ++-
 target/xtensa/helper.c           |  22 ++++++-
 target/xtensa/op_helper.c        |  12 ++--
 tests/tcg/xtensa/Makefile        |   1 +
 tests/tcg/xtensa/test_phys_mem.S | 124 +++++++++++++++++++++++++++++++++++++++
 6 files changed, 156 insertions(+), 12 deletions(-)
 create mode 100644 tests/tcg/xtensa/test_phys_mem.S