On 2/5/21 5:59 PM, Peter Maydell wrote: > The AN524 has a different SYSCLK frequency from the AN505 and AN521; > make the SYSCLK frequency a field in the MPS2TZMachineClass rather > than a compile-time constant so we can support the AN524. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > hw/arm/mps2-tz.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/hw/arm/mps2-tz.c b/hw/arm/mps2-tz.c > index 90caa914934..82ce6262817 100644 > --- a/hw/arm/mps2-tz.c > +++ b/hw/arm/mps2-tz.c > @@ -76,6 +76,7 @@ struct MPS2TZMachineClass { > MachineClass parent; > MPS2TZFPGAType fpga_type; > uint32_t scc_id; > + uint32_t sysclk_frq; /* Main SYSCLK frequency in Hz */
This is what I meant in my Stellaris read-only dc[] registers comment here: https://www.mail-archive.com/qemu-devel@nongnu.org/msg776770.html Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>