pub fn l1_refill(&mut self, index: u64, way: u64, cache_line: L1CacheLine) -> Result<(), ()> {
		// Place the line
		#[cfg(feature = "debug-cache")]
		println!(
			"refill L1[{}][{}]: {:x?}",
			index, way, cache_line.data_blocks
		);
		self.l1_cache.data[index as usize].data[way as usize] = cache_line;
		self.l1_cache.data[index as usize].data[way as usize].valid = true;
		Ok(())
	}
/// Refill a line to L1 cache after allocation and writing back
/// Modified downward interface of L1
///
/// # Arguments
/// * `index`: pre-parsed index for the p_address
/// * `way`: allocated way in L1 cache
/// * `cache_line` : target cache line
Refill a line to L1 cache after allocation and writing back
Modified downward interface of L1
Refill a line to L1 cache after allocation and writing back Modified downward interface of L1
pub fn l1_refill(&mut self, index: u64, way: u64, cache_line: L1CacheLine) -> Result<(), ()> {
		// Place the line
		#[cfg(feature = "debug-cache")]
		println!(
			"refill L1[{}][{}]: {:x?}",
			index, way, cache_line.data_blocks
		);
		self.l1_cache.data[index as usize].data[way as usize] = cache_line;
		self.l1_cache.data[index as usize].data[way as usize].valid = true;
		Ok(())
	}
pub fn l1_refill ( & mut self , index : u64 , way : u64 , cache_line : L1CacheLine ) -> Result < ( ) , ( ) > { // Place the line # [ cfg ( feature " " ) ] println ! ( " " index way cache_line data_blocks ) ; self . l1_cache . data [ index as usize ] . data [ way as usize ] = cache_line ; self . l1_cache . data [ index as usize ] . data [ way as usize ] . valid = true ; Ok ( ( ) ) }
Refill a line to L1 cache after allocation and writing back
Modified downward interface of L1
Refill a line to L1 cache after allocation and writing back Modified downward interface of L1
&mut self
index
u64
way
u64
cache_line
L1CacheLine