Repository navigation
x4prosim: BM8563 offset property to set the clock at runtime - #8
Merged
Merged
Conversation
qom-set /machine/bm8563 offset <seconds from host time> moves the RTC the way an NTP sync would, so a run started with -rtc base=2000-01-01 can check firmware behavior before and after the clock is set without network time. Used to test the CrossDink battery log's clock_set path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G44vPUbRgJCwaepYdHhWs7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: the emulated BM8563 clock could only be set at launch (
-rtc base=) or by a guest write, so a run could not move from "clock never set" to "clock set" without NTP, which the sandbox can't reach.After:
qom-set /machine/bm8563 offset <seconds from host time>moves the clock at runtime, like an NTP sync would.How: a uint64 QOM property on the existing
offsetfield (a build check makes suretime_tis 64-bit). The X4PROSIM.md RTC row documents it. Used to test the CrossDink battery log's clock_set path: started at 2000-01-01, set the offset mid-run, and aclock_setrow followed.🤖 Generated with Claude Code
https://claude.ai/code/session_01G44vPUbRgJCwaepYdHhWs7
Generated by Claude Code