summaryrefslogtreecommitdiff
path: root/dev/tsunami_uart.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-06-23 15:07:09 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-06-23 15:07:09 -0400
commit231fac0a2b4ed7c882c6d83c279bf2a4d2083726 (patch)
treef951bf16ef486951c3b31cb135bfc58fe0aa177d /dev/tsunami_uart.cc
parent3f7b780af5530cc60228ebd3e895ab26d477614e (diff)
downloadgem5-231fac0a2b4ed7c882c6d83c279bf2a4d2083726.tar.xz
more modifications for cross-endian support. linux now gets to pciconfig
dev/alpha_console.cc: rather than acessing a byte array for alpha access, access the members **this requires an updated console** dev/pcidev.cc: correctly type all the pci data and store in in little endian no matter what system we are on dev/tsunami_uart.cc: correct a bug with the data type. kern/linux/linux_system.cc: system type in hwprb needs to be endian happy as well. --HG-- extra : convert_revision : 8de9bb69365b5d30fceaf4fa342a1639f92d7a83
Diffstat (limited to 'dev/tsunami_uart.cc')
-rw-r--r--dev/tsunami_uart.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/tsunami_uart.cc b/dev/tsunami_uart.cc
index 84eb80c8a..c6da02cf4 100644
--- a/dev/tsunami_uart.cc
+++ b/dev/tsunami_uart.cc
@@ -214,7 +214,7 @@ TsunamiUart::write(MemReqPtr &req, const uint8_t *data)
case 0x0: // Data register (TX)
char ourchar;
- ourchar = *(uint64_t *)data;
+ ourchar = *(uint8_t *)data;
if ((isprint(ourchar) || iscntrl(ourchar)) && (ourchar != 0x0C))
cons->out(ourchar);
cons->clearInt(CONS_INT_TX);