Skip to content

debug_console: Update to match ratified version#22

Merged
dgreid merged 1 commit intorivosinc:mainfrom
dgreid:topic/update_dbcn
May 10, 2025
Merged

debug_console: Update to match ratified version#22
dgreid merged 1 commit intorivosinc:mainfrom
dgreid:topic/update_dbcn

Conversation

@dgreid
Copy link
Contributor

@dgreid dgreid commented May 9, 2025

The ratified version of the debug console supports a read and single byte write. Additionally, the PutString function was named "Write".

Bump the version string as this is a breaking change.

The ratified version of the debug console supports a read and single
byte write. Additionally, the PutString function was named "Write".

Bump the version string as this is a breaking change.

Signed-off-by: Dylan Reid <dgreid@rivosinc.com>
@dgreid dgreid requested a review from Copilot May 9, 2025 07:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the debug console implementation to match the ratified version by renaming the PutString function to Write, introducing new functionality for reading and single-byte writing, and bumping the version as a breaking change.

  • Renamed PutString to Write and added a new addr_hi field.
  • Introduced Read and WriteByte variants to support the ratified interface.
  • Updated API usage and bumped Cargo version to 0.2.0.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/debug_console.rs Updated enum variants and trait implementations to align with spec.
src/api/debug_console.rs Adjusted function call to use the new Write variant with addr_hi.
Cargo.toml Bumped version number to reflect the breaking change.
Comments suppressed due to low confidence (1)

src/api/debug_console.rs:7

  • The comment contains a spelling error: 'platfrom' should be 'platform'.
/// Prints the given string in a platfrom-dependent way.

@dgreid dgreid requested a review from atishp04 May 9, 2025 07:54
@dgreid dgreid merged commit c0d8a85 into rivosinc:main May 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants