summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/common/block/cpu/car/cache_as_ram.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/cpu/car/cache_as_ram.S b/src/soc/intel/common/block/cpu/car/cache_as_ram.S
index ba98f1b75c..5408001d55 100644
--- a/src/soc/intel/common/block/cpu/car/cache_as_ram.S
+++ b/src/soc/intel/common/block/cpu/car/cache_as_ram.S
@@ -510,6 +510,7 @@ find_llc_subleaf:
* ways to be configured for non-eviction
*/
mov $CONFIG_DCACHE_RAM_SIZE, %eax
+ xor %edx, %edx /* Clear the upper 32-bit of dividend */
div %ecx
mov %eax, %edx /* back up data_ways in edx */
mov %eax, %ecx