Does C.SW store the whole RV64 register?
No. Like sw, it stores only the low 32 bits of rs2'.
Store 32-bit word to memory. CS format.
C.SW uses CS format, with both rs1' and rs2' limited to x8-x15. It stores the low 32 bits of rs2' to the address formed by rs1' plus a zero-extended, 4-byte-scaled offset, and expands to sw rs2', offset(rs1').
Assumes readable/writable ordinary memory without additional permission faults. The EEI option applies only to addresses not naturally 4-byte aligned; byte order, general permissions, device effects, and post-trap state are not modeled.
Not committed; registers, memory and PC retain their initial state.
Teaching stages show ISA-visible effects, not a CPU pipeline, cache, or timing model.
C.SW maps its compressed register fields to x8-x15 and stores only the low 32 bits of rs2' at rs1' plus a 4-byte-scaled offset.
Understand this scenario with real code like «c.sw x8, 0(x10) # x10=0x2000, x8=0x12345678 -> word at 0x2000=0x12345678».
No. Like sw, it stores only the low 32 bits of rs2'.