1. A method of restricting allocations in a cache, comprising: in a restricted mode, allowing only a predetermined set of instructions to allocate cache entries; and in a non-restricted mode, allowing any memory access instruction to allocate cache entries.