Skip to content

Implement Cache API for M7 through both User/Privileged Paths #28

Description

@emrainey

Add DataCache and InstructionCache Interfaces which when implemented take either the SVC path or direct to supervisor calls.

if constexpr (not run_in_privileged_mode_only) {
    // call supervisor svc<X>
} else {
    // manipulate the hardware directly
}

Then in SVC

switch(imm) {
    case X:
        // manipulate hardware directly
        break;
}

The existing API in the cortex layer is can and should be updated as well to a better interface to be similar to jarnax

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions