According JAR FCL 1 only one PIC for a single pilot aircraft, which makes sense.
According with FAR's both PIC and safety pilot working as PIC log hours as PIC on a single pilot aircraft, under IFR simulated flight.
JAA CPL but exercising FAA private license previleges, so under FAR's regulation which also make sense and allow hours to be logged in as PIC while flying as safety pilot