tests/qemu-iotests/testenv: Use the "r2d" machine for sh4/sh4eb
PATCH 1/1 tests/qemu-iotests/testenv: Use the "r2d" machine for sh4/sh4eb
Commit 0ea0538fae516f9b4 removed the default machine of the sh4 binaries, so a lot of iotests are failing now without such a default machine. Teach the iotest harness to use the "r2d" machine instead to fix this problem.
--- tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)
tests/qemu-iotests/testenv.py +2 -0
@@ -244,6 +244,8 @@ def __init__(self, source_dir: str, build_dir: str, ('riscv32', 'virt'), ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), + ('sh4', 'r2d'), + ('sh4eb', 'r2d'), ('tricore', 'tricore_testboard') ) for suffix, machine in machine_map:
Signature · 1 line
2.46.0
Quoted 27 lines · Thomas Huth
Commit
0ea0538fae516f9b4removed the default machine of the sh4 binaries, so a lot of iotests are failing now without such a default machine. Teach the iotest harness to use the "r2d" machine instead to fix this problem.Signed-off-by Thomas Huth <[email protected]>--- tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)tests/qemu-iotests/testenv.py +2
-0@@ -244,6 +244,8 @@ def __init__(self, source_dir: str, build_dir: str, ('riscv32', 'virt'), ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), + ('sh4', 'r2d'), + ('sh4eb', 'r2d'), ('tricore', 'tricore_testboard') ) for suffix, machine in machine_map:Signature · 1 line
2.46.0
r2d is works only sh4 little endian mode.
There was probably no other hardware that ran in big endian. I think sh4 alone is sufficient for this test.
Signature · 1 line
Yosinori Sato
Quoted 23 lines · Yoshinori Sato
Quoted 21 lines · Thomas Huth
Commit
0ea0538fae516f9b4removed the default machine of the sh4 binaries, so a lot of iotests are failing now without such a default machine. Teach the iotest harness to use the "r2d" machine instead to fix this problem.Signed-off-by Thomas Huth <[email protected]>--- tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)tests/qemu-iotests/testenv.py +2
-0@@ -244,6 +244,8 @@ def __init__(self, source_dir: str, build_dir: str, ('riscv32', 'virt'), ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), + ('sh4', 'r2d'), + ('sh4eb', 'r2d'),
Quoted 8 lines
Quoted 6 lines
tests/qemu-iotests/testenv.py +0
-0('tricore', 'tricore_testboard') ) for suffix, machine in machine_map:Signature · 1 line
2.46.0r2d is works only sh4 little endian mode.
Oh, that's interesting - since there is no other machine left for sh4/sh4eb.
Quoted 1 line
There was probably no other hardware that ran in big endian.
There used to be the "shix" machine, but it got removed, I assume that one worked in big endian mode, too?
Anyway, if the r2d machine only works in little endian mode, and there is apparently no other machine available anymore, I think we can disable the sh4eb target completely since it is of no use now? Or is there a reason to still keep it around?
Thomas
Quoted 34 lines · Thomas Huth
Quoted 23 lines · Yoshinori Sato
Quoted 21 lines · Thomas Huth
Commit
0ea0538fae516f9b4removed the default machine of the sh4 binaries, so a lot of iotests are failing now without such a default machine. Teach the iotest harness to use the "r2d" machine instead to fix this problem.Signed-off-by Thomas Huth <[email protected]>--- tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)tests/qemu-iotests/testenv.py +2
-0@@ -244,6 +244,8 @@ def __init__(self, source_dir: str, build_dir: str, ('riscv32', 'virt'), ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), + ('sh4', 'r2d'), + ('sh4eb', 'r2d'),Quoted 8 lines
Quoted 6 lines
tests/qemu-iotests/testenv.py +0
-0('tricore', 'tricore_testboard') ) for suffix, machine in machine_map:Signature · 1 line
2.46.0r2d is works only sh4 little endian mode.
Quoted 6 lines
Oh, that's interesting - since there is no other machine left for sh4/sh4eb.
Quoted 1 line
There was probably no other hardware that ran in big endian.
There used to be the "shix" machine, but it got removed, I assume that one worked in big endian mode, too?
Since shix's only external device is memory, it will work in big endian. r2d has some peripheral devices that do not support big endian.
Quoted 4 lines
Quoted 1 line
Anyway, if the r2d machine only works in little endian mode, and there
is apparently no other machine available anymore, I think we can disable the sh4eb target completely since it is of no use now? Or is there a reason to still keep it around?
You're right. I haven't used sh4eb in years, and I don't think anyone needs it.
Quoted 2 lines
Thomas
Signature · 1 line
Yosinori Sato
Quoted 25 lines · Yoshinori Sato
Quoted 23 lines · Thomas Huth
Commit
0ea0538fae516f9b4removed the default machine of the sh4 binaries, so a lot of iotests are failing now without such a default machine. Teach the iotest harness to use the "r2d" machine instead to fix this problem.Signed-off-by Thomas Huth <[email protected]>--- tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)tests/qemu-iotests/testenv.py +2
-0@@ -244,6 +244,8 @@ def __init__(self, source_dir: str, build_dir: str, ('riscv32', 'virt'), ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), + ('sh4', 'r2d'), + ('sh4eb', 'r2d'), ('tricore', 'tricore_testboard') )
Quoted 9 lines
Quoted 4 lines
tests/qemu-iotests/testenv.py +0
-0for suffix, machine in machine_map:Signature · 1 line
2.46.0r2d is works only sh4 little endian mode.
There was probably no other hardware that ran in big endian. I think sh4 alone is sufficient for this test.
We can enforce that with:
-- >8 --
hw/sh4/Kconfig +1 -0
@@ -12,6 +12,7 @@ config R2D select SM501 select SH7750 select SH_PCI + depends on !TARGET_BIG_ENDIAN config SH7750 bool
---