[gem5-users] Re: Alternative of void * in syscall_emul.cc file

2021-05-04 Thread Harsh Vardhan Kumar via gem5-users
Thank you for an early response. It's really helpful. Harsh On Tue, May 4, 2021 at 6:31 AM Gabe Black wrote: > Hi. VPtr<> is supposed to be equivalent to void *. Even with a c void * > though, you can't (in standard c) use it as an array of bytes. If you need > it to be an array of bytes, you

[gem5-users] Re: Alternative of void * in syscall_emul.cc file

2021-05-03 Thread Gabe Black via gem5-users
Hi. VPtr<> is supposed to be equivalent to void *. Even with a c void * though, you can't (in standard c) use it as an array of bytes. If you need it to be an array of bytes, you need to use VPtr. There are some facilities to cast VPtrs of different types, but I don't remember how extensive that