src/cpu/cpu.cc
/*
 * Loads the microcode table from the linked binary into ram, and
 * returns it to the CPU.
 */
Loads the microcode table from the linked binary into ram, and
returns it to the CPU.
Loads the microcode table from the linked binary into ram and returns it to the CPU .
CpuOperation *Cpu::LoadCodeTable(void) {
  extern const CpuOperation _binary_bins_inst_table_bin_start[];
  const size_t table_size = NUM_DEFINED_INSTRUCTION * kInstSequenceSize_;
  CpuOperation *table = new CpuOperation[table_size];
  for (size_t i = 0; i < table_size; i++) {
    table[i] = _binary_bins_inst_table_bin_start[i];
  }
  return table;
}
CpuOperation * Cpu :: LoadCodeTable ( void ) { extern const CpuOperation _binary_bins_inst_table_bin_start [ ] ; const size_t table_size = NUM_DEFINED_INSTRUCTION * kInstSequenceSize_ ; CpuOperation * table = new CpuOperation [ table_size ] ; for ( size_t i = 0 ; i < table_size ; i ++ ) { table [ i ] = _binary_bins_inst_table_bin_start [ i ] ; } return table ; }
Loads the microcode table from the linked binary into ram, and
 returns it to the CPU.
Loads the microcode table from the linked binary into ram and returns it to the CPU .