]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/isa/vt82c686: Create rtc-time alias in boards instead
authorBernhard Beschow <shentey@gmail.com>
Thu, 1 Sep 2022 11:41:27 +0000 (13:41 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 31 Oct 2022 10:32:07 +0000 (11:32 +0100)
commitff9105dabc5edeab8328e0b639a21c7ef555161e
tree37cb2b046b2efa40572465ac94f6db7dfaa25aaf
parent3ecb2e62f98b876d5134429f84437e6f6956d212
hw/isa/vt82c686: Create rtc-time alias in boards instead

According to good QOM practice, an object should only deal with objects
of its own sub tree. Having devices create an alias on the machine
object doesn't respect this good practice. To resolve this, create the
alias in the machine's code.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220901114127.53914-14-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/isa/vt82c686.c
hw/mips/fuloong2e.c
hw/ppc/pegasos2.c