|
From: Josef W. <Jos...@gm...> - 2004-09-13 08:45:10
|
Am Samstag, 11. September 2004 18:45 schrieb Nicholas Nethercote:
> + =C2=A0 // Set the default cache config (using auto-detection, if suppor=
ted by
> + =C2=A0 // current arch)
> + =C2=A0 VGA_(configure_caches)( I1c, D1c, L2c, &I1_dflt, &D1_dflt, &L2_d=
flt,
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 (3 =3D=3D n_clos) );
Would it be possible to put this into core to make it available to other=20
tools?
Perhaps using another API, like
cache_t* VGA_(get_hw_cache_config)(CacheType t);
with
enum CacheType {I1, D1, L2, TLB1, TLB2, L3};
or similar?
If V doesn't know how to get the config, it would return 0.
Josef
|