Skip to content

Valgrind fixes and bridge commands consolidation#87

Open
sinuscosinustan wants to merge 4 commits into
mainfrom
cmd-consolidation
Open

Valgrind fixes and bridge commands consolidation#87
sinuscosinustan wants to merge 4 commits into
mainfrom
cmd-consolidation

Conversation

@sinuscosinustan

Copy link
Copy Markdown
Collaborator

It's time again for a small batch of things I did during the train ride 😸

  • Fix a bunch of memory leaks that I found with Valgrind. I haven't addressed all of them (e.g. a heap bug in *make_root_doc), but the obvious ones which are just s/malloc/calloc were fixed ^^
  • Consolidate most of the bridge-specific cmds into the read and write commands. The functionality was almost always the same for each command. The only difference was in the initialisation, which we do not have to do like it was done before. However, the P2A command is an exception. There's some code that allows to define if a user wants to use the VGA, or the BMC PCIe device. An alternative implementation would be to have either an argument that only applies if the bridge in connection is p2a, or have two bridges called p2a-vga and p2a-bmc, but I do not necessarily see the benefit here.

Closes #82

The clangd LSP in Emacs configures itself to cache in the project by
default.

Signed-off-by: Tan Siewert <tan@siewert.io>
Fix the easy stuff that valgrind has found.

Signed-off-by: Tan Siewert <tan@siewert.io>
Signed-off-by: Tan Siewert <tan@siewert.io>
With the existence of the `via` keyword, we do not need separate commands
anymore for each bridge. The only exception in this case is the P2A
bridge, as it has some code to allow the user to specify if they want to
access the AHB bridge via the VGA, or the BMC device.

Closes: #82
Signed-off-by: Tan Siewert <tan@siewert.io>
@sinuscosinustan sinuscosinustan requested a review from amboar June 3, 2026 13:19
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.

2 participants