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