Deleted Added
sdiff udiff text old ( 12320:d846aaaa33b1 ) new ( 12438:c7514a2a926d )
full compact
1/*
2 * Copyright (c) 2015 RISC-V Foundation
3 * Copyright (c) 2017 The University of Virginia
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 46 unchanged lines hidden (view full) ---

55
56string
57CSROp::generateDisassembly(Addr pc, const SymbolTable *symtab) const
58{
59 stringstream ss;
60 ss << mnemonic << ' ' << registerName(_destRegIdx[0]) << ", ";
61 if (_numSrcRegs > 0)
62 ss << registerName(_srcRegIdx[0]) << ", ";
63 auto name = MiscRegNames.find(csr);
64 if (name != MiscRegNames.end())
65 ss << name->second;
66 else
67 ss << "?? (" << hex << "0x" << csr << ")";
68 return ss.str();
69}
70
71}