~ahs3/+junk/cq-qemu

« back to all changes in this revision

Viewing changes to hw/a9mpcore.c

  • Committer: Al Stone
  • Date: 2012-02-09 01:17:20 UTC
  • Revision ID: albert.stone@canonical.com-20120209011720-tztl7ik3qayz80p4
first commit to bzr for qemu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Cortex-A9MPCore internal peripheral emulation.
 
3
 *
 
4
 * Copyright (c) 2009 CodeSourcery.
 
5
 * Written by Paul Brook
 
6
 *
 
7
 * This code is licensed under the GPL.
 
8
 */
 
9
 
 
10
/* 128 external IRQ lines.  */
 
11
#define GIC_NIRQ 160
 
12
#include "mpcore.c"
 
13
 
 
14
static SysBusDeviceInfo mpcore_priv_info = {
 
15
    .init = mpcore_priv_init,
 
16
    .qdev.name  = "a9mpcore_priv",
 
17
    .qdev.size  = sizeof(mpcore_priv_state),
 
18
    .qdev.props = (Property[]) {
 
19
        DEFINE_PROP_UINT32("num-cpu", mpcore_priv_state, num_cpu, 1),
 
20
        DEFINE_PROP_END_OF_LIST(),
 
21
    }
 
22
};
 
23
 
 
24
static void a9mpcore_register_devices(void)
 
25
{
 
26
    sysbus_register_withprop(&mpcore_priv_info);
 
27
}
 
28
 
 
29
device_init(a9mpcore_register_devices)