]> git.proxmox.com Git - mirror_qemu.git/commit
sun4u: implement power device
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 24 Jan 2018 19:19:58 +0000 (19:19 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 25 Jan 2018 13:39:39 +0000 (13:39 +0000)
commit25c5d5acfbaa148b2da64b1f2c1401f87ebb0bb4
tree0f5f315593f29bade68e917227457befc10c6805
parentbe75bbe2d779bd9d4958057fd35172c7eef42258
sun4u: implement power device

This inbuilt device contains a single 4-byte register, of which bit 24 is used
to power down the machine on a real Ultra 5.

The power device exists at offset 0x724000 on a real machine, but due to the
current configuration of the BARs in QEMU it must be located lower in PCI IO
space.

For the moment we place the power device at offset 0x7240 as a reminder of its
original location and raise the base PCI IO address from 0x4000 to 0x8000.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
hw/sparc64/sun4u.c