2
0

a9mpcore.c 676 B

1234567891011121314151617181920212223242526272829
  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. /* 64 external IRQ lines. */
  10. #define GIC_NIRQ 96
  11. #include "mpcore.c"
  12. static SysBusDeviceInfo mpcore_priv_info = {
  13. .init = mpcore_priv_init,
  14. .qdev.name = "a9mpcore_priv",
  15. .qdev.size = sizeof(mpcore_priv_state),
  16. .qdev.props = (Property[]) {
  17. DEFINE_PROP_UINT32("num-cpu", mpcore_priv_state, num_cpu, 1),
  18. DEFINE_PROP_END_OF_LIST(),
  19. }
  20. };
  21. static void a9mpcore_register_devices(void)
  22. {
  23. sysbus_register_withprop(&mpcore_priv_info);
  24. }
  25. device_init(a9mpcore_register_devices)