What I took from the ending, is that Solas, now weak and confused, had his body possessed by Flemmeth, as she was clearly in control in the scene, but her body was old. She was almost ready to take Morrigan's Body in Origins, and she has only gotten older since.