Merge pull request #2 from lasseaeggen/patch-1

Fix order of multipleInstructions when NOP padding
This commit is contained in:
Joseph Rogers 2021-10-14 14:23:35 +02:00 committed by GitHub
commit 859ecf2296
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,7 +228,7 @@ object Parser {
def addOps (t: List[SourceInfo[Op]]): FoldHelper = { def addOps (t: List[SourceInfo[Op]]): FoldHelper = {
if(testOptions.nopPadded){ if(testOptions.nopPadded){
copy( 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) addrCount = addrCount + t.size*4*5)
} }
else { else {