/* The returned entry has a reference count of 1 and is owned by the caller. The caller must allocate the actual table field for this entry and it must be freeable using qemu_vfree().  */
CachedL2Table* qed_alloc_l2_cache_entry(L2TableCache *l2_cache)
/* The returned entry has a reference count of 1 and is owned by the caller. The caller must allocate the actual table field for this entry and it must be freeable using qemu_vfree().  */
CachedL2Table* qed_alloc_l2_cache_entry(L2TableCache *l2_cache)
{
    CachedL2Table *entry;
    entry = g_malloc0(sizeof(*entry));
    entry->ref++;
    trace_qed_alloc_l2_cache_entry(l2_cache, entry);
    return entry;
}