~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to hw/sbi.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-07 06:20:34 UTC
  • mfrom: (1.1.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20090307062034-i3pead4mw653v2el
Tags: 0.10.0-1
[ Aurelien Jarno ]
* New upstream release:
  - Fix fr-be keyboard mapping (closes: bug#514462).
  - Fix stat64 structure on ppc-linux-user (closes: bug#470231).
  - Add a chroot option (closes: bug#415996).
  - Add evdev support (closes: bug#513210).
  - Fix loop on symlinks in user mode (closes: bug#297572).
  - Bump depends on openbios-sparc.
  - Depends on openbios-ppc.
  - Update 12_signal_powerpc_support.patch.
  - Update 21_net_soopts.patch.
  - Drop 44_socklen_t_check.patch (merged upstream).
  - Drop 49_null_check.patch (merged upstream).
  - Update 64_ppc_asm_constraints.patch.
  - Drop security/CVE-2008-0928-fedora.patch (merged upstream).
  - Drop security/CVE-2007-5730.patch (merged upstream).
* patches/80_stable-branch.patch: add patches from stable branch:
  - Fix race condition between signal handler/execution loop (closes:
    bug#474386, bug#501731).
* debian/copyright: update.
* Compile and install .dtb files:
  - debian/control: build-depends on device-tree-compiler.
  - debian/patches/81_compile_dtb.patch: new patch from upstream.
  - debian/rules: compile and install bamboo.dtb and mpc8544.dtb.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
} SBIState;
47
47
 
48
48
#define SBI_SIZE (SBI_NREGS * 4)
49
 
#define SBI_MASK (SBI_SIZE - 1)
50
49
 
51
50
static void sbi_check_interrupts(void *opaque)
52
51
{
65
64
    SBIState *s = opaque;
66
65
    uint32_t saddr, ret;
67
66
 
68
 
    saddr = (addr & SBI_MASK) >> 2;
 
67
    saddr = addr >> 2;
69
68
    switch (saddr) {
70
69
    default:
71
70
        ret = s->regs[saddr];
81
80
    SBIState *s = opaque;
82
81
    uint32_t saddr;
83
82
 
84
 
    saddr = (addr & SBI_MASK) >> 2;
 
83
    saddr = addr >> 2;
85
84
    DPRINTF("write system reg 0x" TARGET_FMT_plx " = %x\n", addr, val);
86
85
    switch (saddr) {
87
86
    default:
147
146
    SBIState *s;
148
147
 
149
148
    s = qemu_mallocz(sizeof(SBIState));
150
 
    if (!s)
151
 
        return NULL;
152
149
 
153
150
    for (i = 0; i < MAX_CPUS; i++) {
154
151
        s->cpu_irqs[i] = parent_irq[i];