ppc: allow the hdecr timer to be created/destroyed
commit93aeb702105e0dabaf70518bacc7f6fc102c1c34
authorNicholas Piggin <npiggin@gmail.com>
Fri, 18 Feb 2022 07:34:14 +0000 (18 08:34 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 18 Feb 2022 07:34:14 +0000 (18 08:34 +0100)
treeb0d67f28c7688c1f6724868c34bde9326df7d43c
parent5ff40b01244932734ee2ee0075580c653b6dd201
ppc: allow the hdecr timer to be created/destroyed

Machines which don't emulate the HDEC facility are able to use the
timer for something else. Provide functions to start and stop the
hdecr timer.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[ clg: checkpatch fixes ]
Message-Id: <20220216102545.1808018-4-npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/ppc.c
include/hw/ppc/ppc.h