Skip to content

Commit

Permalink
libsel4vm: remove unused function is_active()
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Feb 27, 2023
1 parent f376e0b commit dac6adb
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions libsel4vm/src/arch/arm/vgic/vdist.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,24 +126,6 @@ static inline bool is_enabled(struct gic_dist_map *gic_dist, int irq, int vcpu_i
return is_spi_enabled(gic_dist, irq);
}

static inline bool is_sgi_ppi_active(struct gic_dist_map *gic_dist, int irq, int vcpu_id)
{
return !!(gic_dist->active0[vcpu_id] & IRQ_BIT(irq));
}

static inline bool is_spi_active(struct gic_dist_map *gic_dist, int irq)
{
return !!(gic_dist->active[IRQ_IDX(irq)] & IRQ_BIT(irq));
}

static inline bool is_active(struct gic_dist_map *gic_dist, int irq, int vcpu_id)
{
if (irq < NUM_VCPU_LOCAL_VIRQS) {
return is_sgi_ppi_active(gic_dist, irq, vcpu_id);
}
return is_spi_active(gic_dist, irq);
}

static int vgic_dist_enable(vgic_t *vgic, vm_t *vm)
{
assert(vgic);
Expand Down

0 comments on commit dac6adb

Please sign in to comment.