Skip to contentSkip to conversation

powerpc: Enable HTM capability for h_cede_tm testcase

GIT PULL Thomas Huth 1 participant 1 message Feb 28, 2019

lore
Share & tools
lore
#0 lore raw

From: David Gibson <[email protected]>

The h_cede_tm case is specifically about an edge case with the H_CEDE hypercall while using hardware transactional memory (HTM). Current qemu versions don't enable HTM instructions in guests by default, so we should explicitly enable them in order to execute this test.

---
 powerpc/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
powerpc/unittests.cfg +1 -1
index 4eda258..af535b7 100644
@@ -63,7 +63,7 @@ file = emulator.elf
 [h_cede_tm]
 file = tm.elf
 smp = 2,threads=2
-extra_params = -append "h_cede_tm"
+extra_params = -machine cap-htm=on -append "h_cede_tm"
 groups = nodefault,h_cede_tm
 
 [sprs]
Signature · 1 line
1.8.3.1