1. 27 11月, 2018 1 次提交
  2. 02 7月, 2018 5 次提交
  3. 21 10月, 2017 1 次提交
  4. 04 5月, 2017 3 次提交
    • S
      target/openrisc: Support non-busy idle state using PMR SPR · f4d1414a
      Stafford Horne 提交于
      The OpenRISC architecture has the Power Management Register (PMR)
      special purpose register to manage cpu power states.  The interesting
      modes are:
      
       * Doze Mode (DME) - Stop cpu except timer & pic - wake on interrupt
       * Sleep Mode (SME) - Stop cpu and all units - wake on interrupt
       * Suspend Model (SUME) - Stop cpu and all units - wake on reset
      
      The linux kernel will set DME when idle.
      
      This patch implements the PMR SPR and halts the qemu cpu when there is a
      change to DME or SME.  This means that openrisc qemu in no longer peggs
      a host cpu at 100%.
      
      In order for this to work we need to kick the CPU when timers are
      expired.  Update the cpu timer to kick the cpu upon each timer event.
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Signed-off-by: NStafford Horne <shorne@gmail.com>
      f4d1414a
    • S
      target/openrisc: Implement full vmstate serialization · acf57591
      Stafford Horne 提交于
      Previously serialization did not persist the tlb, timer, pic and other
      key state items.  This meant snapshotting and restoring a running os
      would crash. After adding these I am able to take snapshots of a
      running linux os and restore at a later time.
      
      I am currently not trying to maintain capatibility with older versions
      as I do not believe this really worked before or anyone used it.
      Signed-off-by: NStafford Horne <shorne@gmail.com>
      acf57591
    • S
      target/openrisc: implement shadow registers · d89e71e8
      Stafford Horne 提交于
      Shadow registers are part of the openrisc spec along with sr[cid], as
      part of the fast context switching feature.  When exceptions occur,
      instead of having to save registers to the stack if enabled the CID will
      increment and a new set of registers will be available.
      
      This patch only implements shadow registers which can be used as extra
      scratch registers via the mfspr and mtspr if required.  This is
      implemented in a way where it would be easy to add on the fast context
      switching, currently cid is hardcoded to 0.
      
      This is need for openrisc linux smp kernels to boot correctly.
      Signed-off-by: NStafford Horne <shorne@gmail.com>
      d89e71e8
  5. 14 2月, 2017 4 次提交
  6. 21 12月, 2016 1 次提交
    • T
      Move target-* CPU file into a target/ folder · fcf5ef2a
      Thomas Huth 提交于
      We've currently got 18 architectures in QEMU, and thus 18 target-xxx
      folders in the root folder of the QEMU source tree. More architectures
      (e.g. RISC-V, AVR) are likely to be included soon, too, so the main
      folder of the QEMU sources slowly gets quite overcrowded with the
      target-xxx folders.
      To disburden the main folder a little bit, let's move the target-xxx
      folders into a dedicated target/ folder, so that target-xxx/ simply
      becomes target/xxx/ instead.
      
      Acked-by: Laurent Vivier <laurent@vivier.eu> [m68k part]
      Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> [tricore part]
      Acked-by: Michael Walle <michael@walle.cc> [lm32 part]
      Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> [s390x part]
      Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> [s390x part]
      Acked-by: Eduardo Habkost <ehabkost@redhat.com> [i386 part]
      Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> [sparc part]
      Acked-by: Richard Henderson <rth@twiddle.net> [alpha part]
      Acked-by: Max Filippov <jcmvbkbc@gmail.com> [xtensa part]
      Reviewed-by: David Gibson <david@gibson.dropbear.id.au> [ppc part]
      Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [cris&microblaze part]
      Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> [unicore32 part]
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      fcf5ef2a
  7. 19 5月, 2016 2 次提交
  8. 29 1月, 2016 1 次提交
  9. 14 5月, 2014 1 次提交
  10. 28 6月, 2013 1 次提交
  11. 28 7月, 2012 1 次提交
  12. 06 12月, 2009 1 次提交