Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-20 Thread Emilio G. Cota
On Fri, Apr 20, 2018 at 12:31:42 +1200, Michael Clark wrote: (snip) > In any case it seems we need some pretty major changes to translate.c > before we can make misa writable in qemu-riscv. Almost every gen routine > with the exception of RVI will need predication based on extensions. It > makes on

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-19 Thread Andrew Waterman
On Thu, Apr 19, 2018 at 5:05 PM, Michael Clark wrote: > > > On Thu, Apr 19, 2018 at 9:28 PM, Zong Li wrote: > >> 2018-04-19 12:43 GMT+08:00 Michael Clark : >> > Hi Zong, >> > >> >> On 19/04/2018, at 2:40 PM, Zong Li wrote: >> >> >> >> Hi all, >> >> >> >> For BBL part, in fp_init at machine/mini

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-19 Thread Andrew Waterman
On Thu, Apr 19, 2018 at 5:11 PM, Michael Clark wrote: > > > On Fri, Apr 20, 2018 at 12:05 PM, Michael Clark wrote: > >> >> >> On Thu, Apr 19, 2018 at 9:28 PM, Zong Li wrote: >> >>> 2018-04-19 12:43 GMT+08:00 Michael Clark : >>> > Hi Zong, >>> > >>> >> On 19/04/2018, at 2:40 PM, Zong Li wrote:

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-19 Thread Zong Li
2018-04-20 8:05 GMT+08:00 Michael Clark : > > > On Thu, Apr 19, 2018 at 9:28 PM, Zong Li wrote: >> >> 2018-04-19 12:43 GMT+08:00 Michael Clark : >> > Hi Zong, >> > >> >> On 19/04/2018, at 2:40 PM, Zong Li wrote: >> >> >> >> Hi all, >> >> >> >> For BBL part, in fp_init at machine/minit.c, >> >> it

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-19 Thread Zong Li
2018-04-20 8:11 GMT+08:00 Andrew Waterman : > > > On Thu, Apr 19, 2018 at 5:05 PM, Michael Clark wrote: >> >> >> >> On Thu, Apr 19, 2018 at 9:28 PM, Zong Li wrote: >>> >>> 2018-04-19 12:43 GMT+08:00 Michael Clark : >>> > Hi Zong, >>> > >>> >> On 19/04/2018, at 2:40 PM, Zong Li wrote: >>> >> >>>

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-19 Thread Michael Clark
On Fri, Apr 20, 2018 at 12:12 PM, Andrew Waterman wrote: > > > On Thu, Apr 19, 2018 at 5:11 PM, Michael Clark wrote: > >> >> >> On Fri, Apr 20, 2018 at 12:05 PM, Michael Clark wrote: >> >>> >>> >>> On Thu, Apr 19, 2018 at 9:28 PM, Zong Li wrote: >>> 2018-04-19 12:43 GMT+08:00 Michael Clar

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-19 Thread Michael Clark
On Fri, Apr 20, 2018 at 12:05 PM, Michael Clark wrote: > > > On Thu, Apr 19, 2018 at 9:28 PM, Zong Li wrote: > >> 2018-04-19 12:43 GMT+08:00 Michael Clark : >> > Hi Zong, >> > >> >> On 19/04/2018, at 2:40 PM, Zong Li wrote: >> >> >> >> Hi all, >> >> >> >> For BBL part, in fp_init at machine/min

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-19 Thread Michael Clark
On Thu, Apr 19, 2018 at 9:28 PM, Zong Li wrote: > 2018-04-19 12:43 GMT+08:00 Michael Clark : > > Hi Zong, > > > >> On 19/04/2018, at 2:40 PM, Zong Li wrote: > >> > >> Hi all, > >> > >> For BBL part, in fp_init at machine/minit.c, > >> it will clear the D and F bits of misa register, and assertio

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-19 Thread Zong Li
2018-04-19 12:43 GMT+08:00 Michael Clark : > Hi Zong, > >> On 19/04/2018, at 2:40 PM, Zong Li wrote: >> >> Hi all, >> >> For BBL part, in fp_init at machine/minit.c, >> it will clear the D and F bits of misa register, and assertion that >> the bits is cleared. >> But the misa is WARL register, so

Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL

2018-04-18 Thread Michael Clark
Hi Zong, > On 19/04/2018, at 2:40 PM, Zong Li wrote: > > Hi all, > > For BBL part, in fp_init at machine/minit.c, > it will clear the D and F bits of misa register, and assertion that > the bits is cleared. > But the misa is WARL register, so there is no effect for writing it, > and the asserti