arch-arm: Fixes an error related to HTM error code handling

Arguments of the function bits(), called in restore method,
are the other way around.

This leads to wrong retry handling.

Jira Issue: https://gem5.atlassian.net/browse/GEM5-1041

Change-Id: I0748b1cad57bea5527ca585852d183bd75b4c9ef
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47939
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Javier Garcia Hernandez
2021-07-12 19:43:36 +02:00
committed by Javier Garcia
parent b2677990f6
commit 4754e32219

View File

@@ -129,7 +129,7 @@ ArmISA::HTMCheckpoint::restore(ThreadContext *tc, HtmFailureFaultCause cause)
case HtmFailureFaultCause::EXPLICIT:
replaceBits(error_code, 14, 0, tcreason);
replaceBits(error_code, 16, 1);
retry = bits(15, tcreason);
retry = bits(tcreason, 15);
break;
case HtmFailureFaultCause::MEMORY:
replaceBits(error_code, 17, 1);