| Index: src/trusted/validator_arm/actual_vs_baseline.cc
|
| ===================================================================
|
| --- src/trusted/validator_arm/actual_vs_baseline.cc (revision 10678)
|
| +++ src/trusted/validator_arm/actual_vs_baseline.cc (working copy)
|
| @@ -24,6 +24,11 @@
|
| actual_decoder_(actual_.named_decoder()),
|
| baseline_decoder_(baseline_.named_decoder()) {}
|
|
|
| +bool ActualVsBaselineTester::DoApplySanityChecks() {
|
| + return baseline_tester_.ApplySanityChecks(
|
| + inst_, baseline_tester_.GetInstDecoder());
|
| +}
|
| +
|
| void ActualVsBaselineTester::ProcessMatch() {
|
| baseline_tester_.InjectInstruction(inst_);
|
| const NamedClassDecoder& decoder = baseline_tester_.GetInstDecoder();
|
| @@ -36,7 +41,7 @@
|
| if (nacl_arm_dec::MAY_BE_SAFE == decoder.safety(inst_)) {
|
| // Run sanity baseline checks, to see that the baseline is
|
| // correct.
|
| - if (!baseline_tester_.ApplySanityChecks(inst_, decoder)) {
|
| + if (!DoApplySanityChecks()) {
|
| // The sanity checks found a serious issue and already reported
|
| // it. don't bother to report additional problems.
|
| return;
|
|
|