1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Fill in dynamic cost of shifts.

This commit is contained in:
Thomas Harte 2022-05-27 11:12:10 -04:00
parent c367ddff1b
commit a8623eab4a

View File

@ -2537,8 +2537,8 @@ template <typename IntT> void ProcessorBase::did_muls(IntT) {
// TODO: calculate cost.
}
void ProcessorBase::did_shift(int) {
// TODO: calculate cost.
void ProcessorBase::did_shift(int bits_shifted) {
dynamic_instruction_length_ = bits_shifted;
}
template <bool use_current_instruction_pc> void ProcessorBase::raise_exception(int vector) {