summaryrefslogtreecommitdiff
path: root/dev/console.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-01-29 16:32:03 -0500
committerNathan Binkert <binkertn@umich.edu>2004-01-29 16:32:03 -0500
commitee4263f72e547d551e26b058ee16a48a5f47e3c4 (patch)
tree0430dfb5febc3e431581fa752d51141efef703f7 /dev/console.hh
parent639037d127586bb363ed314b2f00f1d371555ae1 (diff)
downloadgem5-ee4263f72e547d551e26b058ee16a48a5f47e3c4.tar.xz
Fix character input by handling the character and the
special console values separately. dev/alpha_console.cc: use new console specific input function --HG-- extra : convert_revision : 08997d6115d2aac3a26cac2774b3c3fc0cd76ab0
Diffstat (limited to 'dev/console.hh')
-rw-r--r--dev/console.hh8
1 files changed, 6 insertions, 2 deletions
diff --git a/dev/console.hh b/dev/console.hh
index 9913fe379..d2bba4612 100644
--- a/dev/console.hh
+++ b/dev/console.hh
@@ -109,7 +109,10 @@ class SimConsole : public SimObject
// OS interface
// Get a character from the console.
- // the return value corresponds to the console GETC return value:
+ bool in(uint8_t &value);
+
+ // get a character from the console in the console specific format
+ // corresponds to GETC:
// retval<63:61>
// 000: success: character received
// 001: success: character received, more pending
@@ -118,8 +121,9 @@ class SimConsole : public SimObject
// 111: failure: character received with error, more pending
// retval<31:0>
// character read from console
+ //
// Interrupts are cleared when the buffer is empty.
- uint64_t in();
+ uint64_t console_in();
// Send a character to the console
void out(char c, bool raise_int = true);