OSDN Git Service

tcg/mips: fix crash in tcg_out_qemu_ld()
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 9 Feb 2010 21:54:22 +0000 (22:54 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 9 Feb 2010 21:54:22 +0000 (22:54 +0100)
commitcca1af8c4d2ef6449fd61494ba2cb087b838011c
tree5f66ee8faebd68da2ea05eda33399ddd54d19dc3
parent5a25cc2b5cf90de7726e519d6fd78474f86638a6
tcg/mips: fix crash in tcg_out_qemu_ld()

The address register is overriden when it corresponds to v0 and the fast
path is taken, which leads to a crash. Fix that by using the a0 register
instead.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/mips/tcg-target.c