hw/intc/loongson: Fix incorrect 'core' calculation in liointc_read/write