qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cuda.cc from Pearpc question


From: BALATON Zoltan
Subject: Re: cuda.cc from Pearpc question
Date: Mon, 17 Mar 2025 14:52:42 +0100 (CET)

On Mon, 17 Mar 2025, Andrew Randrianasulu wrote:
https://github.com/sebastianbiallas/pearpc/blob/master/src/io/cuda/cuda.cc


here you can see comment

// VIA timer runs at a frequency of 1/1.27655us
// or 783361.40378364 ticks/second
#define VIA_TIMER_FREQ_DIV_HZ_TIMES_1000 (783361404ULL)


yet  in qemu we have

4700000 / 6
= 783333

is this change significant ?

Adding Mark as he may know more about this. This value seems to be used in pmu.c and cuda.c but mac_via.c has #define VIA_TIMER_FREQ (783360) (parenthesis superfluous around constant) which is closer. I think it may make the VIA timers a bit inaccurate but probably not enough to be noticable as these are used for short delays. Maybe if this is the same for all Macs these defines could be unified somewhere to make it consistent?

Regards,
BALATON Zoltan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]