Commit 4f697717 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

2005-03-08 Benoît Perrot <benoit@lrde.epita.fr>

	Remove redundant accessors from virtual machine.
	
	* src/vm/virtual_machine.hh (get_cpu_register, get_cpu_pc):
	Remove.
	* src/shell/shell.hh: Use VirtualMachine::get_cpu() instead.
parent 2c970ea6
2005-03-08 Benoît Perrot <benoit@lrde.epita.fr>
Remove redundant accessors from virtual machine.
* src/vm/virtual_machine.hh (get_cpu_register, get_cpu_pc):
Remove.
* src/shell/shell.hh: Use VirtualMachine::get_cpu() instead.
2005-03-06 Benoît Perrot <benoit@lrde.epita.fr>
Display the number of executed R,I and J-type instructions on
......
......@@ -72,8 +72,9 @@ namespace shell
int get_register(const std::string &r)
{
if (r == "pc")
return vm_.get_cpu_pc();
return vm_.get_cpu_register(map_register_[r]); // FIXME: assert r exists
return vm_.get_cpu().get_pc();
// FIXME: assert r exists
return vm_.get_cpu().get_register(map_register_[r]);
}
/** \name Display list
......
......@@ -134,19 +134,6 @@ namespace vm
return status_;
}
/// Return the value of a register
register_type get_cpu_register(Cpu::kind_type k) const
{
return cpu_.get_register(k);
}
/// Return the value of the pc
register_type get_cpu_pc() const
{
return cpu_.get_pc();
}
const Cp0 &get_cp0() const { return cp0_; }
const Cpu &get_cpu() const { return cpu_; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment