git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb7c94
)
Reflect fixes to I/O in ipdf/vfpu
author
Sam Moore
<
[email protected]
>
Mon, 14 Apr 2014 15:28:19 +0000
(23:28 +0800)
committer
Sam Moore
<
[email protected]
>
Mon, 14 Apr 2014 15:28:19 +0000
(23:28 +0800)
Commits in ipdf/vfpu:
354bf006d86abdfad9dbb915facec36f99af77bc
e005897cffaf46cbbed14b3cc1ef74a390c93fef
Only using 1 hex character for opcode (3 bits) and rmode (2 bits) as opposed to 1 char per bit (...)
Also no need to print extra newline; it was a bug in ipdf/vfpu
src/vfpu.cpp
patch
|
blob
|
history
diff --git
a/src/vfpu.cpp
b/src/vfpu.cpp
index
85637ff
..
8783ca1
100644
(file)
--- a/
src/vfpu.cpp
+++ b/
src/vfpu.cpp
@@
-116,7
+116,7
@@
Register Exec(const Register & a, const Register & b, Opcode op, Rmode rmode)
assert(g_running);
stringstream s;
- s << hex << setw(8) << setfill('0') << a.to_ullong() << "\n" << b.to_ullong() << "\n" << setw(
3) << op <<"\n" << setw(2) << rmode << "\n
\n";
+ s << hex << setw(8) << setfill('0') << a.to_ullong() << "\n" << b.to_ullong() << "\n" << setw(
1) << op <<"\n" << setw(1) << rmode << "
\n";
string str(s.str());
//Debug("Writing: %s", str.c_str());
UCC
git Repository :: git.ucc.asn.au