diff options
| author | Nicholas Piggin <npiggin@gmail.com> | 2023-08-08 14:19:48 +1000 |
|---|---|---|
| committer | Cédric Le Goater <clg@kaod.org> | 2023-09-06 11:19:33 +0200 |
| commit | eab0888418ab44344864965193cf6cd194ab6858 (patch) | |
| tree | a517aca9e3cc6b66cb1073f51227b1566801a9ae /python/scripts/mkvenv.py | |
| parent | 47de6c4c287079744ceb96f606b3c0457addf380 (diff) | |
| download | focaccia-qemu-eab0888418ab44344864965193cf6cd194ab6858.tar.gz focaccia-qemu-eab0888418ab44344864965193cf6cd194ab6858.zip | |
hw/ppc: Round up the decrementer interval when converting to ns
The rule of timers is typically that they should never expire before the timeout, but some time afterward. Rounding timer intervals up when doing conversion is the right thing to do. Under most circumstances it is impossible observe the decrementer interrupt before the dec register has triggered. However with icount timing, problems can arise. For example setting DEC to 0 can schedule the timer for now, causing it to fire before any more instructions have been executed and DEC is still 0. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'python/scripts/mkvenv.py')
0 files changed, 0 insertions, 0 deletions