X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fvfpu.cpp;h=b59fe3ecaa1747598a2c27fba79289f9333d34dd;hb=29f315953466e71fc76b1b05c79c1231e5c83074;hp=85637fff122e9f773812086244367cae792e8ffa;hpb=7fc41b098090ad2d365ef34700542656947aa8ff;p=ipdf%2Fcode.git diff --git a/src/vfpu.cpp b/src/vfpu.cpp index 85637ff..b59fe3e 100644 --- a/src/vfpu.cpp +++ b/src/vfpu.cpp @@ -21,7 +21,7 @@ using namespace std; namespace VFPU { - + static const char g_fpu[] = "vfpu"; static bool g_running = false; @@ -114,9 +114,9 @@ float Exec(float opa, float opb, Opcode op, Rmode rmode) 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"; + //TODO: Make it compile on non C++11 + 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()); @@ -138,6 +138,7 @@ Register Exec(const Register & a, const Register & b, Opcode op, Rmode rmode) } stringstream s2; + //TODO: Make it compile on non C++11 s2 << hex << result.to_ullong(); //Debug("Result is: %s", s2.str().c_str()); return result;