Hi all

I implement a function of writing an uncacheable float variable to a specific 
address, but I have a problem with checking the data in the packet.

I add following code in cache.cc and it turns out unexpected data in debug file.

```
DPRINTF(Cache, "Cache bypass addr: 0x%x and data: %6.2f\n", pkt->getAddr(), 
pkt->get<float>());
```

However, if I change the data from float to int in my C code and use following 
code, it works well.

```
DPRINTF(Cache, "Cache bypass addr: 0x%x and data: %d\n", pkt->getAddr(), 
pkt->get<uint32_t>());
```

For the gem5 version, I'm using https://github.com/umd-memsys/gem5, which is 
not the latest. I'm not sure if the version is the reason.

Could anyone help me with it? I really appreciated it.

Thank you in advance!

Liyan Chen
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to