Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
staskau committed Mar 19, 2024
1 parent e3b631d commit e967e23
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/iss/asmjit/vm_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ template <typename ARCH> class vm_base : public debugger_if, public vm_if {
auto elapsed = end - start;
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(elapsed).count();
CPPLOG(INFO) << "Executed " << core.get_icount() << " instructions in " << func_map.size() << " code blocks during " << millis
<< "ms resulting in " << (core.get_icount() * 0.001 / millis) << "MIPS";
<< "ms resulting in " << (core.get_icount() * 0.001 / millis) << "MIPS";
return error;
}

Expand Down
4 changes: 2 additions & 2 deletions src/iss/interp/vm_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ template <typename ARCH> class vm_base : public debugger_if, public vm_if {
auto elapsed = end - start;
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(elapsed).count();
auto instr_if = core.get_instrumentation_if();
CPPLOG(INFO) << "Executed " << instr_if->get_instr_count() << " instructions in " << instr_if->get_total_cycles() << " cycles during "
<< millis << "ms resulting in " << (core.get_icount() * 0.001 / millis) << "MIPS";
CPPLOG(INFO) << "Executed " << instr_if->get_instr_count() << " instructions in " << instr_if->get_total_cycles()
<< " cycles during " << millis << "ms resulting in " << (core.get_icount() * 0.001 / millis) << "MIPS";
return error;
}

Expand Down
2 changes: 1 addition & 1 deletion src/iss/llvm/vm_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ template <typename ARCH> class vm_base : public debugger_if, public vm_if {
auto elapsed = end - start;
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(elapsed).count();
CPPLOG(INFO) << "Executed " << core.get_icount() << " instructions in " << func_map.size() << " code blocks during " << millis
<< "ms resulting in " << (core.get_icount() * 0.001 / millis) << "MIPS";
<< "ms resulting in " << (core.get_icount() * 0.001 / millis) << "MIPS";
return error;
}

Expand Down
4 changes: 2 additions & 2 deletions src/iss/plugin/caculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ struct error_handler_ {

template <typename Iterator> void operator()(qi::info const& what, Iterator err_pos, Iterator last) const {
CPPLOG(ERR) << "Expecting " << what // what failed?
<< " here: \"" << std::string(err_pos, last) // iterators to error-pos, end
<< "\"" << std::endl;
<< " here: \"" << std::string(err_pos, last) // iterators to error-pos, end
<< "\"" << std::endl;
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/iss/tcc/vm_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ template <typename ARCH> class vm_base : public debugger_if, public vm_if {
auto elapsed = end - start;
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(elapsed).count();
CPPLOG(INFO) << "Executed " << core.get_icount() << " instructions in " << func_map.size() << " code blocks during " << millis
<< "ms resulting in " << (core.get_icount() * 0.001 / millis) << "MIPS";
<< "ms resulting in " << (core.get_icount() * 0.001 / millis) << "MIPS";
return error;
}

Expand Down
4 changes: 2 additions & 2 deletions src/iss/vm_jit_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ uint8_t read_mem(arch_if_ptr_t iface, uint32_t addr_type, uint32_t space, uint64

uint8_t write_mem(arch_if_ptr_t iface, uint32_t addr_type, uint32_t space, uint64_t addr, uint32_t length, uint8_t* data) {
#ifdef EXEC_LOGGING
CPPLOG(TRACE) << "EXEC: write mem " << (unsigned)type << " of core " << iface << " at addr 0x" << hex << addr << " with value 0x" << data
<< dec << " of len " << length;
CPPLOG(TRACE) << "EXEC: write mem " << (unsigned)type << " of core " << iface << " at addr 0x" << hex << addr << " with value 0x"
<< data << dec << " of len " << length;
#endif
return iface->write((address_type)addr_type, access_type::WRITE, (uint16_t)space, addr, length, data);
}
Expand Down

0 comments on commit e967e23

Please sign in to comment.