diff options
Diffstat (limited to 'dev/pciconfigall.cc')
-rw-r--r-- | dev/pciconfigall.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/pciconfigall.cc b/dev/pciconfigall.cc index 6a4d60d1b..8c6657ceb 100644 --- a/dev/pciconfigall.cc +++ b/dev/pciconfigall.cc @@ -159,10 +159,10 @@ PciConfigAll::write(MemReqPtr &req, const uint8_t *data) else { switch (req->size) { case sizeof(uint8_t): - word_value = *(uint8_t*)data & 0x000000FF; + word_value = *(uint8_t*)data; break; case sizeof(uint16_t): - word_value = *(uint16_t*)data & 0x0000FFFF; + word_value = *(uint16_t*)data; break; case sizeof(uint32_t): word_value = *(uint32_t*)data; |