[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 14/17] lm32: todo and documentation
From: |
Michael Walle |
Subject: |
Re: [Qemu-devel] [PATCH 14/17] lm32: todo and documentation |
Date: |
Fri, 11 Feb 2011 23:45:45 +0100 |
User-agent: |
KMail/1.13.5 (Linux/2.6.32-5-686-bigmem; KDE/4.4.5; i686; ; ) |
Am Freitag 11 Februar 2011, 21:41:14 schrieb Blue Swirl:
> > +Special instructions
> > +--------------------
> > +The translation recognizes one special instruction to halt the cpu:
> > + and r0, r0, r0
> > +On real hardware this instruction is a nop. It is not used by GCC and
> > +should (hopefully) not be used within hand-crafted assembly.
> > +Insert this instruction in your idle loop to reduce the cpu load on the
> > +host.
>
> It would be better to use MMIO or privileged instruction for this
> instead of changing an unprivileged instruction.
MMIO can't be used as that would have an impact on real hardware? The idea is
to use this instruction for both the real hardware and QEMU.
--
Michael
[Qemu-devel] [PATCH 09/17] lm32: timer model, Michael Walle, 2011/02/10
[Qemu-devel] [PATCH 15/17] lm32: opcode testsuite, Michael Walle, 2011/02/10
[Qemu-devel] Re: [PATCH 00/17 v2] LatticeMico32 target, Edgar E. Iglesias, 2011/02/11