Hi all,

I am a little stuck and would appreciate if someone could help. I am
simulating in Gem5 syscall emulation mode and I've made some modifications
to the CPU model to support some additional instructions (RISC-V). To
compile programs using the new instructions, I also have a clang compiler
that places the instructions. It is important that *every* piece of code
that is executed on the core goes through my own compiler. I compiled Newlib
for libc support. Unfortunately, the _write() function (that is, the
function that executes the syscall) has to be implemented manually. Is there
a way to print to stdout in syscall emulation mode where I compile the libc
myself? What would the _write() function have to implement? Is there any
other way to print during simulation?

>From other platforms I am used to solutions like "write at a specific
address" but I couldn't find anything like that for Gem5. I realize that the
problem is very unusual, I would appreciate any help. Thanks!

Best,
Jan
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to