sim: cpu_sim: bounds check loads and stores