Re: [Qemu-devel] [RFCv2 PATCH 1/1] SPARC64: add icount support

2018-06-14 Thread Richard Henderson
On 06/14/2018 12:09 PM, Mark Cave-Ayland wrote: > I still see the "WARNING: Time of Day clock error" messages on the console > when > booting Milax with icount enabled, although I'm inclined to merge this if > you're happy with the patch as it is a definite improvement. Yeah, let's fix whatever t

Re: [Qemu-devel] [RFCv2 PATCH 1/1] SPARC64: add icount support

2018-06-14 Thread Mark Cave-Ayland
On 14/06/18 22:02, Richard Henderson wrote: On 06/14/2018 12:53 AM, Mark Cave-Ayland wrote: +if (dc->base.tb->cflags & CF_USE_ICOUNT) { +gen_io_start(); +} Need to use tb_cflags(dc->base.tb) for the atomic_read therei

Re: [Qemu-devel] [RFCv2 PATCH 1/1] SPARC64: add icount support

2018-06-14 Thread Richard Henderson
On 06/14/2018 12:53 AM, Mark Cave-Ayland wrote: > +if (dc->base.tb->cflags & CF_USE_ICOUNT) { > +gen_io_start(); > +} Need to use tb_cflags(dc->base.tb) for the atomic_read therein. > +

[Qemu-devel] [RFCv2 PATCH 1/1] SPARC64: add icount support

2018-06-14 Thread Mark Cave-Ayland
This patch adds gen_io_start()/gen_io_end() to various instructions as required in order to boot my OpenBIOS test images on qemu-system-sparc64 with icount enabled. Signed-off-by: Mark Cave-Ayland --- target/sparc/translate.c | 97 1 file changed,