1. 20 8月, 2013 3 次提交
    • P
      hw/arm/armv7m: Don't use arm_pic_init_cpu() · de3a658f
      Peter Maydell 提交于
      Drop the now-deprecated arm_pic_init_cpu() in favour of directly
      getting the IRQ line from the ARMCPU object.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1375977856-25046-3-git-send-email-peter.maydell@linaro.org
      de3a658f
    • P
      target-arm: Make IRQ and FIQ gpio lines on the CPU object · 7c1840b6
      Peter Maydell 提交于
      Now that ARMCPU is a subclass of DeviceState, we can make the
      CPU's inbound IRQ and FIQ lines be simply gpio lines, which
      means we can remove the odd arm_pic shim.
      
      We retain the arm_pic_init_cpu() function as a backwards
      compatibility shim layer so we can convert the board models
      to get the IRQ and FIQ lines directly from the ARMCPU
      object one at a time.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1375977856-25046-2-git-send-email-peter.maydell@linaro.org
      7c1840b6
    • P
      target-arm: Implement 'int' loglevel · 3f1beaca
      Peter Maydell 提交于
      The 'int' loglevel for recording interrupts and exceptions
      requires support in the target-specific code. Implement
      it for ARM. This improves debug logging in some situations
      that were otherwise pretty opaque, such as when we fault
      trying to execute at an exception vector address, which
      would otherwise cause an infinite loop of taking exceptions
      without any indication in the debug log of what was going on.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Message-id: 1375700771-21665-1-git-send-email-peter.maydell@linaro.org
      3f1beaca
  2. 16 8月, 2013 2 次提交
  3. 14 8月, 2013 3 次提交
    • A
      mips_malta: do not raise exceptions when accessing invalid memory · cc413a39
      Aurelien Jarno 提交于
      Since commit c658b94f, MIPS raises
      exceptions when accessing invalid memory. This is not the correct
      behaviour for MIPS Malta Core LV, as the GT-64120A system controller
      just ignore undecoded access. This feature is used by the Linux kernel
      to probe for some devices.
      
      Emulate the correct behaviour in QEMU by adding an empty slot covering
      the entire memory space decoded by the GT-64120A.
      Tested-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      cc413a39
    • M
      block: Dont ignore previously set bdrv_flags · 8b7a5415
      M. Mohan Kumar 提交于
      bdrv_flags is set by bdrv_parse_discard_flags(), but later it is reset
      to zero.
      Signed-off-by: NM. Mohan Kumar <mohan@in.ibm.com>
      Message-id: 1376483201-13466-1-git-send-email-mohan@in.ibm.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8b7a5415
    • J
      qemu-char: fix infinite recursion connecting to monitor pty · 3a3567d3
      James Hogan 提交于
      Since commit bd5c51ee (qemu-char: don't issue CHR_EVENT_OPEN in a BH), an
      infinite recursion occurs when putting the monitor on a pty (-monitor
      pty) and connecting a terminal to the slave port.
      
      This is because of the qemu_chr_be_event(s, CHR_EVENT_OPENED) added to
      qemu_chr_be_generic_open(). This event is captured by monitor_event()
      which prints a welcome message to the character device. The flush of
      that welcome message retriggers another open event in pty_chr_state()
      because it checks s->connected, but only sets it to 1 after calling
      qemu_chr_be_generic_open().
      
      I've fixed this by setting s->connected = 1 before the call to
      qemu_chr_be_generic_open() instead of after, so that the recursive
      pty_chr_state() doesn't call it again.
      
      An example snippet of repeating backtrace:
       ...
       #107486 0x007aec58 in monitor_flush (mon=0xf418b0) at qemu/monitor.c:288
       #107487 0x007aee7c in monitor_puts (mon=0xf418b0, str=0x1176d07 "") at qemu/monitor.c:322
       #107488 0x007aef20 in monitor_vprintf (mon=0xf418b0, fmt=0x8d4820 "QEMU %s monitor - type 'help' for more information\n",
           ap=0x7f432be0) at qemu/monitor.c:339
       #107489 0x007aefac in monitor_printf (mon=0xf418b0, fmt=0x8d4820 "QEMU %s monitor - type 'help' for more information\n")
           at qemu/monitor.c:347
       #107490 0x007ba4bc in monitor_event (opaque=0xf418b0, event=2) at qemu/monitor.c:4699
       #107491 0x00684c28 in qemu_chr_be_event (s=0xf37788, event=2) at qemu/qemu-char.c:108
       #107492 0x00684c70 in qemu_chr_be_generic_open (s=0xf37788) at qemu/qemu-char.c:113
       #107493 0x006880a4 in pty_chr_state (chr=0xf37788, connected=1) at qemu/qemu-char.c:1145
       #107494 0x00687fa4 in pty_chr_update_read_handler (chr=0xf37788) at qemu/qemu-char.c:1121
       #107495 0x00687c9c in pty_chr_write (chr=0xf37788, buf=0x70b3c008 <Address 0x70b3c008 out of bounds>, len=538720)
           at qemu/qemu-char.c:1063
       #107496 0x00684cc4 in qemu_chr_fe_write (s=0xf37788, buf=0x70b3c008 <Address 0x70b3c008 out of bounds>, len=538720)
           at qemu/qemu-char.c:118
       ...
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Tested-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Message-id: 1375960178-10882-1-git-send-email-james.hogan@imgtec.com
      Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
      Cc: Anthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      3a3567d3
  4. 13 8月, 2013 6 次提交
  5. 12 8月, 2013 25 次提交
  6. 10 8月, 2013 1 次提交