Let's say I have a pointer char *p. How can I implement behavior, in which depending on which processor is doing pointer dereference, different data is accessed?
I want something like Thread Local Storage, but for HW thread (something like HW-thread Local Storage, CPU Local Storage).
char *p = ...; // Initialization should be done in some special way, probably
char *local_p = get_hwls(p);