Message ID | 20180315191958.28937-1-laurent@vivier.eu |
---|---|
Headers | show |
Series | target/m68k: fix TCGv array overflow | expand |
On 03/16/2018 03:19 AM, Laurent Vivier wrote: > I try to fix this by introducing a new TCG function > to try to free a TCGv if it is a temporary one and > do nothing otherwise (patches 1 and 2) I would prefer not to approach this in this way. Better is to have translator helpers that allocate temps that are freed at the end of the insn. C.f. new_tmp_a64 in target/arm/translate-a64.c. r~
Le 15/03/2018 à 20:34, Richard Henderson a écrit : > On 03/16/2018 03:19 AM, Laurent Vivier wrote: >> I try to fix this by introducing a new TCG function >> to try to free a TCGv if it is a temporary one and >> do nothing otherwise (patches 1 and 2) > > I would prefer not to approach this in this way. OK. This is why it was an RFC. > Better is to have translator helpers that allocate temps > that are freed at the end of the insn. > > C.f. new_tmp_a64 in target/arm/translate-a64.c. I'm going to try that. Thank you, Laurent