add flags support for cpus

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
fix crash with MEM view

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>