From e130c204aafd7d8f29eb5ee36ba62645c56f0a7a Mon Sep 17 00:00:00 2001 From: unzner Date: Tue, 27 Nov 2012 16:59:05 +0000 Subject: [PATCH] the injection offset in IDCFlip is now completely left aligned (instead of bytewise left aligned and bitwise right aligned) git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1959 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/experiments/l4-sys/experiment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/experiments/l4-sys/experiment.cc b/src/experiments/l4-sys/experiment.cc index 81ab0ebf..f841b7ce 100644 --- a/src/experiments/l4-sys/experiment.cc +++ b/src/experiments/l4-sys/experiment.cc @@ -434,7 +434,7 @@ bool L4SysExperiment::run() { Bit8u bit_index = bit_offset & 7; // apply the fault - curr_instr_plain[byte_index] ^= 1 << bit_index; + curr_instr_plain[byte_index] ^= 0x80 >> bit_index; // decode the instruction bxInstruction_c bochs_instr;