NOTE: In the future, these code should be moved under common code once they support both RV32 & RV64 architectures.