ARC: Optimize writes and reads of registers [Patch 2/N]

Step 2: Handle cores with extension registers.

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>