At the moment, remote-sim.c's gdbsim_fetch_register and gdbsim_store_register functions assume that the simulator's register set (as visible via sim_fetch_register and sim_store_register) corresponds exactly to GDB's raw register set. This patch is meant to remove that assumption. Tested on i686-pc-linux-gnu x powerpc-eabispe (sim).