Fix order of multipleInstructions when NOP padding
Make sure that expanded multipleInstructions are in correct order. Example for LI that's expanded to LUI->ADDI. Old behavior: nop, nop, nop, nop, ADDI nop, nop, nop, nop, LUI New behaviour: nop, nop, nop, nop, LUI nop, nop, nop, nop, ADDI
This commit is contained in:
parent
e9a4e8a5b3
commit
092ef72680
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ object Parser {
|
|||
def addOps (t: List[SourceInfo[Op]]): FoldHelper = {
|
||||
if(testOptions.nopPadded){
|
||||
copy(
|
||||
ops = t.flatMap(x => (x :: List.fill(4)(SourceInfo("inserted NOP", NOP).widen[Op]))).reverse ::: ops,
|
||||
ops = t.flatMap(x => (x :: List.fill(4)(SourceInfo("inserted NOP", NOP).widen[Op])).reverse) ::: ops,
|
||||
addrCount = addrCount + t.size*4*5)
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue