Re: [PATCH-for-5.0?] decodetree: Use Python3 floor division operator

2020-03-30 Thread Richard Henderson
On 3/30/20 4:28 PM, Aleksandar Markovic wrote: > Richard, great, could you please pick up the LMI patch from the other day > together with this patch in your tcg-5.0 queue? Yes, I've got it. r~

Re: [PATCH-for-5.0?] decodetree: Use Python3 floor division operator

2020-03-30 Thread Aleksandar Markovic
20:47 Pon, 30.03.2020. Richard Henderson је написао/ла: > > On 3/30/20 10:14 AM, Richard Henderson wrote: > > On 3/30/20 5:13 AM, Philippe Mathieu-Daudé wrote: > >> This script started using Python2, where the 'classic' division > >> operator returns the floor result. In commit 3d004a371 we

Re: [PATCH-for-5.0?] decodetree: Use Python3 floor division operator

2020-03-30 Thread Richard Henderson
On 3/30/20 10:14 AM, Richard Henderson wrote: > On 3/30/20 5:13 AM, Philippe Mathieu-Daudé wrote: >> This script started using Python2, where the 'classic' division >> operator returns the floor result. In commit 3d004a371 we started >> to use Python3, where the division operator returns the float

Re: [PATCH-for-5.0?] decodetree: Use Python3 floor division operator

2020-03-30 Thread Richard Henderson
On 3/30/20 5:13 AM, Philippe Mathieu-Daudé wrote: > This script started using Python2, where the 'classic' division > operator returns the floor result. In commit 3d004a371 we started > to use Python3, where the division operator returns the float > result ('true division'). > To keep the same

Re: [PATCH-for-5.0?] decodetree: Use Python3 floor division operator

2020-03-30 Thread Peter Maydell
On Mon, 30 Mar 2020 at 13:14, Philippe Mathieu-Daudé wrote: > > This script started using Python2, where the 'classic' division > operator returns the floor result. In commit 3d004a371 we started > to use Python3, where the division operator returns the float > result ('true division'). > To keep

[PATCH-for-5.0?] decodetree: Use Python3 floor division operator

2020-03-30 Thread Philippe Mathieu-Daudé
This script started using Python2, where the 'classic' division operator returns the floor result. In commit 3d004a371 we started to use Python3, where the division operator returns the float result ('true division'). To keep the same behavior, use the 'floor division' operator "//" which returns