ppc4xx_devs.c (31db5b3638553e616eba3391dbff88f77b8a5bc9) ppc4xx_devs.c (a1f7f97b950a46393b0e55a9a0082e70f540cbbd)
1/*
2 * QEMU PowerPC 4xx embedded processors shared devices emulation
3 *
4 * Copyright (c) 2007 Jocelyn Mayer
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 147 unchanged lines hidden (view full) ---

156}
157
158static void ppcuic_set_irq (void *opaque, int irq_num, int level)
159{
160 ppcuic_t *uic;
161 uint32_t mask, sr;
162
163 uic = opaque;
1/*
2 * QEMU PowerPC 4xx embedded processors shared devices emulation
3 *
4 * Copyright (c) 2007 Jocelyn Mayer
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 147 unchanged lines hidden (view full) ---

156}
157
158static void ppcuic_set_irq (void *opaque, int irq_num, int level)
159{
160 ppcuic_t *uic;
161 uint32_t mask, sr;
162
163 uic = opaque;
164 mask = 1 << (31-irq_num);
164 mask = 1U << (31-irq_num);
165 LOG_UIC("%s: irq %d level %d uicsr %08" PRIx32
166 " mask %08" PRIx32 " => %08" PRIx32 " %08" PRIx32 "\n",
167 __func__, irq_num, level,
168 uic->uicsr, mask, uic->uicsr & mask, level << irq_num);
169 if (irq_num < 0 || irq_num > 31)
170 return;
171 sr = uic->uicsr;
172

--- 547 unchanged lines hidden ---
165 LOG_UIC("%s: irq %d level %d uicsr %08" PRIx32
166 " mask %08" PRIx32 " => %08" PRIx32 " %08" PRIx32 "\n",
167 __func__, irq_num, level,
168 uic->uicsr, mask, uic->uicsr & mask, level << irq_num);
169 if (irq_num < 0 || irq_num > 31)
170 return;
171 sr = uic->uicsr;
172

--- 547 unchanged lines hidden ---