add platform info in the gen binary code.
authorLuoXionghu <xionghu.luo@intel.com>
Wed, 16 Jul 2014 01:31:05 +0000 (09:31 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 16 Jul 2014 05:49:42 +0000 (13:49 +0800)
commit958296cb14f7d5a34fb8a2c21e3230de71a5cab0
treeef7be8fca394a3daf2719fa97ca1b855daeddcf7
parent13b229abca8b9cd528f76ef355efc69e81313c15
add platform info in the gen binary code.

the size of the platform info is 3 bytes, right after the '/0GENC'.
check the header magic number and platform info before deserializeFromBin.

v2: supports IVB/BYT/HSW binary on its' platform, and BYT binary runs on IVB.
v3: fix 'BYT' overwritten by 'IVB';

Signed-off-by: LuoXionghu <xionghu.luo@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/gen_program.cpp
backend/src/gbe_bin_generater.cpp