Skip to content

Commit

Permalink
cmd/7a: recognize register g, and not R29.
Browse files Browse the repository at this point in the history
It brings the assembler in line with 5a and 9a.

Fixes golang#35.

Signed-off-by: minux <[email protected]>
  • Loading branch information
minux committed Jan 9, 2015
1 parent 4175998 commit d493f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/7a/lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ struct
"R26", LREG, 26,
"R27", LREG, 27,
"R28", LREG, 28,
"R29", LREG, 29,
"g", LREG, 29, // avoid unintentionally clobbering g using R29
"R30", LREG, 30,
"LR", LREG, 30,
"ZR", LREG, 31,
Expand Down

0 comments on commit d493f00

Please sign in to comment.