changeset 6c00fcf12fdf in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=6c00fcf12fdf
description:
Microcode: Fix a very old bug with parsing external labels in microcode.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/arch/micro_asm.py | 2 +-
diffs (15 lines):
diff -r 6e0569faeeef -r 6c00fcf12fdf src/arch/micro_asm.py
--- a/src/arch/micro_asm.py Thu Oct 09 00:06:05 2008 -0700
+++ b/src/arch/micro_asm.py Thu Oct 09 00:07:21 2008 -0700
@@ -242,7 +242,10 @@
def t_asm_ID(t):
r'[A-Za-z_]\w*'
t.type = reserved_map.get(t.value, 'ID')
- t.lexer.begin('params')
+ # If the ID is really "extern", we shouldn't start looking for parameters
+ # yet. The real ID, the label itself, is coming up.
+ if t.type != 'EXTERN':
+ t.lexer.begin('params')
return t
# If there is a label and you're -not- in the assembler (which would be caught
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev