sim/debug_uart: constify io operations.