This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Read or Write Allocate Policy?

Hi, experts:

在armv8手册中 MAIR_EL1寄存器设置内存属性时,11RW,当 RW都设置为1时,即1111,那是Read Allocate 还是 Write Allocate ?如果是write Allocate的话就和把RW设置为01效果是一样的?

bestwish

Parents
  • hi

    read allocate 和 write allocate 并不冲突,

    read allocate是指load的时候在cache里分配slot

    write allocate是指store时候分配,

    所以RW=11是指在load和store时都分配cache slot, 01只是在store是否分配。

Reply
  • hi

    read allocate 和 write allocate 并不冲突,

    read allocate是指load的时候在cache里分配slot

    write allocate是指store时候分配,

    所以RW=11是指在load和store时都分配cache slot, 01只是在store是否分配。

Children
No data