summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/microasm.isa
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/isa/microasm.isa')
-rw-r--r--src/arch/x86/isa/microasm.isa9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/x86/isa/microasm.isa b/src/arch/x86/isa/microasm.isa
index 9e8b65c4e..78ae34f52 100644
--- a/src/arch/x86/isa/microasm.isa
+++ b/src/arch/x86/isa/microasm.isa
@@ -107,6 +107,15 @@ let {{
}
assembler.symbols.update(symbols)
+ assembler.symbols["ldsz"] = \
+ "((env.dataSize == 8) ? 3 : (env.dataSize == 4) ? 2 : 1)"
+
+ assembler.symbols["lasz"] = \
+ "((env.addressSize == 8) ? 3 : (env.addressSize == 4) ? 2 : 1)"
+
+ assembler.symbols["lssz"] = \
+ "((env.stackSize == 8) ? 3 : (env.stackSize == 4) ? 2 : 1)"
+
# Short hand for common scale-index-base combinations.
assembler.symbols["sib"] = \
[symbols["scale"], symbols["index"], symbols["base"]]