[PATCH openEuler-22.03-LTS-SP1 031/371] RISC-V: Make port I/O string accessors actually work