Skip to content

How do tohost and fromhost work? #364

@terabyte128

Description

@terabyte128

I defined tohost and fromhostas memory locations in the linker script for a bare-metal program that I'm trying to run within spike. But I can't find anywhere how these symbols are actually used. I assumed that I could just write bytes from within my program to the location as defined by tohost and they would show up, but that doesn't seem to be the case.

How can I use these symbols to actually exchange data between spike and the host machine?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions