simulator: make r0 and p0 read-only