aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/utils
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-09-15 12:29:58 +0200
committerBjörn Gustavsson <[email protected]>2017-10-05 12:37:57 +0200
commit985524704ddd62cf85385a323861377608d66c9c (patch)
treeae1deb50e492837ee0ca8837b4dff2447d6a9301 /erts/emulator/utils
parentf88bd45a2c76f84a16b004922945579898cc35ac (diff)
downloadotp-985524704ddd62cf85385a323861377608d66c9c.tar.gz
otp-985524704ddd62cf85385a323861377608d66c9c.tar.bz2
otp-985524704ddd62cf85385a323861377608d66c9c.zip
Optimize instruction prefetch
Diffstat (limited to 'erts/emulator/utils')
-rwxr-xr-xerts/emulator/utils/beam_makeops4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/utils/beam_makeops b/erts/emulator/utils/beam_makeops
index 388e3d164d..322d60b00e 100755
--- a/erts/emulator/utils/beam_makeops
+++ b/erts/emulator/utils/beam_makeops
@@ -1452,10 +1452,10 @@ sub code_gen {
"ASSERT(VALID_INSTR(*I));\n" .
"Goto(*I);";
} else {
- $var_decls .= "BeamInstr next_pf = I[$instr_offset];\n";
+ $var_decls .= "BeamInstr next_pf = BeamCodeAddr(I[$instr_offset]);\n";
$dispatch_next = "\nI += $instr_offset;\n" .
"ASSERT(VALID_INSTR(next_pf));\n" .
- "Goto(next_pf);";
+ "GotoPF(next_pf);";
}
#